|
| | Point () |
| | Empty point constructor.
|
| | Point (const Coordinate &coordinate) |
| | Constructor with Coordinate.
|
| | Point (const Kernel::FT &x, const Kernel::FT &y) |
| | XY Constructor with exact coordinates.
|
| | Point (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z, const double &m=NaN()) |
| | XYZ Constructor with exact coordinates.
|
| | Point (const double &x, const double &y) |
| | XY constructor.
|
| | Point (const double &x, const double &y, const double &z) |
| | XYZ constructor.
|
| | Point (const double &x, const double &y, const double &z, const double &m) |
| | XYZM constructor.
|
| | Point (const double &x, const double &y, const double &z, const double &m, CoordinateType dim) |
| | Generic XYZM constructor determined by CoordinateType.
|
| | Point (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z, const double &m, CoordinateType dim) |
| | Generic XYZM constructor determined by CoordinateType.
|
| | Point (const Kernel::Point_2 &other) |
| | Constructor from CGAL::Point_2<K>.
|
| | Point (const Kernel::Point_3 &other) |
| | Constructor from CGAL::Point_3<K>.
|
| | Point (const Point &other) |
| | copy constructor
|
| auto | operator= (const Point &other) -> Point & |
| | assign operator
|
| | ~Point () override |
| | destructor
|
| auto | geometryType () const -> std::string override |
| | Get the geometry type as string.
|
| auto | geometryTypeId () const -> GeometryType override |
| | Get the geometry type identifier.
|
| auto | dimension () const -> int override |
| | Get the dimension of the point.
|
| auto | coordinateDimension () const -> int override |
| | Get the coordinate dimension.
|
| auto | isEmpty () const -> bool override |
| | Check if the point is empty.
|
| auto | is3D () const -> bool override |
| | Check if the point has 3D coordinates.
|
| auto | isMeasured () const -> bool override |
| | Check if the point has measured coordinates.
|
| auto | dropZ () -> bool override |
| | Drop Z coordinate.
|
| auto | dropM () -> bool override |
| | Drop M coordinate.
|
| auto | swapXY () -> void override |
| | Swap X and Y coordinates.
|
| auto | x () const -> Kernel::RT |
| | Returns the x value as a double throw for empty Point.
|
| auto | y () const -> Kernel::RT |
| | Returns the y value as a double throw for empty Point.
|
| auto | z () const -> Kernel::RT |
| | Returns the z value (zero for 2D) throw for empty Point.
|
| auto | m () const -> double |
| | Returns the m value (NaN is not defined).
|
| void | setM (const double &m) |
| | Sets the m value.
|
| auto | operator< (const Point &other) const -> bool |
| | compare two points
|
| auto | operator== (const Point &other) const -> bool |
| | compare with an other point
|
| auto | operator!= (const Point &other) const -> bool |
| | compare with an other point
|
| auto | almostEqual (const Point &other, double tolerance) const -> bool |
| | absolute comparison with an other point
|
| void | accept (GeometryVisitor &visitor) override |
| | Accept a geometry visitor.
|
| void | accept (ConstGeometryVisitor &visitor) const override |
| | Accept a const geometry visitor.
|
| auto | toVector_2 () const -> Kernel::Vector_2 |
| | Convert to CGAL 2D vector.
|
| auto | toVector_3 () const -> Kernel::Vector_3 |
| | Convert to CGAL 3D vector.
|
| auto | toPoint_2 () const -> Kernel::Point_2 |
| | Convert to CGAL 2D point.
|
| auto | toPoint_3 () const -> Kernel::Point_3 |
| | Convert to CGAL 3D point.
|
| template<int Dim> |
| auto | toPoint_d () const -> typename detail::TypeForDimension< Dim >::Point |
| | Converts to CGAL::Point_2 or CGAL::Point_3.
|
| auto | coordinate () -> Coordinate & |
| | Get reference to coordinate.
|
| auto | coordinate () const -> const Coordinate & |
| | Get const reference to coordinate.
|
| template<class Archive> |
| void | serialize (Archive &ar, const unsigned int) |
| | Serializer.
|
A point in SFA.
The x(),y(),z() interface is based on CGAL kernel requirements, taken from examples/Kernel_23/MyPointC2.h
- Todo
- strong typing on coordinate dimension?