|
SFCGAL 2.3.0
|
Represents the Coordinate of a Point (wraps either an empty structure, or a Kernel::Point_2, or a Kernel::Point_3). More...
#include <Coordinate.h>
Classes | |
| class | Empty |
Public Member Functions | |
| Coordinate () | |
| Empty Coordinate constructor. | |
| Coordinate (const Kernel::FT &x, const Kernel::FT &y) | |
| XY Constructor with exact coordinates. | |
| Coordinate (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z) | |
| XYZ Constructor with exact coordinates. | |
| Coordinate (const double &x, const double &y, const double &z) | |
| XYZ constructor. | |
| Coordinate (const double &x, const double &y) | |
| XY constructor. | |
| Coordinate (const Kernel::Point_2 &other) | |
| Constructor from CGAL::Point_2<K>. | |
| Coordinate (const Kernel::Point_3 &other) | |
| Constructor from CGAL::Point_3<K>. | |
| Coordinate (const Coordinate &other) | |
| copy constructor | |
| auto | operator= (const Coordinate &other) -> Coordinate & |
| assign operator | |
| ~Coordinate () | |
| destructor | |
| auto | coordinateDimension () const -> int |
| Get the dimension of the coordinates. | |
| auto | isEmpty () const -> bool |
| Tests if the coordinates are empty. | |
| auto | is3D () const -> bool |
| Tests if Z is defined. | |
| auto | x () const -> Kernel::FT |
| Gets the x value. | |
| auto | y () const -> Kernel::FT |
| Gets the y value. | |
| auto | z () const -> Kernel::FT |
| Gets the z value. | |
| auto | round (const long &scaleFactor=1) -> Coordinate & |
| round coordinates with a scale factor | |
| auto | operator< (const Coordinate &other) const -> bool |
| Compares two points (lexicographic order). | |
| auto | operator== (const Coordinate &other) const -> bool |
| Compares with an other point. | |
| auto | operator!= (const Coordinate &other) const -> bool |
| Compares with an other point. | |
| auto | almostEqual (const Coordinate &other, double tolerance) const -> bool |
| absolute comparison with an other coordinate | |
| auto | toVector_2 () const -> Kernel::Vector_2 |
| Converts to Kernel::Vector_2. | |
| auto | toVector_3 () const -> Kernel::Vector_3 |
| Converts to Kernel::Vector_3. | |
| auto | toPoint_2 () const -> Kernel::Point_2 |
| Converts to Kernel::Point_2. | |
| auto | toPoint_3 () const -> Kernel::Point_3 |
| Converts to Kernel::Point_3. | |
| auto | dropZ () -> bool |
| Drops the z coordinate. | |
| auto | swapXY () -> void |
| Swaps the x and y coordinates. | |
| template<class Archive> | |
| void | save (Archive &ar, const unsigned int) const |
| Save coordinate to archive. | |
| template<class Archive> | |
| void | load (Archive &ar, const unsigned int) |
| Load coordinate from archive. | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int version) |
| Serialize coordinate to/from archive. | |
Represents the Coordinate of a Point (wraps either an empty structure, or a Kernel::Point_2, or a Kernel::Point_3).
| SFCGAL::Coordinate::Coordinate | ( | ) |
Empty Coordinate constructor.
| SFCGAL::Coordinate::Coordinate | ( | const Kernel::FT & | x, |
| const Kernel::FT & | y ) |
| SFCGAL::Coordinate::Coordinate | ( | const Kernel::FT & | x, |
| const Kernel::FT & | y, | ||
| const Kernel::FT & | z ) |
| SFCGAL::Coordinate::Coordinate | ( | const double & | x, |
| const double & | y, | ||
| const double & | z ) |
| SFCGAL::Coordinate::Coordinate | ( | const double & | x, |
| const double & | y ) |
| SFCGAL::Coordinate::Coordinate | ( | const Kernel::Point_2 & | other | ) |
Constructor from CGAL::Point_2<K>.
| other | The CGAL 2D point to copy |
| SFCGAL::Coordinate::Coordinate | ( | const Kernel::Point_3 & | other | ) |
Constructor from CGAL::Point_3<K>.
| other | The CGAL 3D point to copy |
|
default |
copy constructor
| other | The coordinate to copy from |
|
default |
destructor
|
nodiscard |
absolute comparison with an other coordinate
| other | The coordinate to compare with |
| tolerance | The tolerance for comparison |
|
nodiscard |
Get the dimension of the coordinates.
| auto SFCGAL::Coordinate::dropZ | ( | ) | -> bool |
Drops the z coordinate.
|
nodiscard |
Tests if Z is defined.
|
nodiscard |
Tests if the coordinates are empty.
|
inline |
Load coordinate from archive.
| ar | Archive to load from |
| auto SFCGAL::Coordinate::operator!= | ( | const Coordinate & | other | ) | const -> bool |
Compares with an other point.
| other | The coordinate to compare with |
| auto SFCGAL::Coordinate::operator< | ( | const Coordinate & | other | ) | const -> bool |
Compares two points (lexicographic order).
| other | The coordinate to compare with |
|
default |
assign operator
| other | The coordinate to assign from |
| auto SFCGAL::Coordinate::operator== | ( | const Coordinate & | other | ) | const -> bool |
Compares with an other point.
| other | The coordinate to compare with |
| auto SFCGAL::Coordinate::round | ( | const long & | scaleFactor = 1 | ) | -> Coordinate & |
round coordinates with a scale factor
| scaleFactor | The scale factor to apply (default 1) |
|
inline |
Save coordinate to archive.
| ar | Archive to save to |
|
inline |
Serialize coordinate to/from archive.
| ar | Archive for serialization |
| version | Serialization version |
| auto SFCGAL::Coordinate::swapXY | ( | ) | -> void |
Swaps the x and y coordinates.
|
nodiscard |
Converts to Kernel::Point_2.
|
nodiscard |
Converts to Kernel::Point_3.
|
inlinenodiscard |
Converts to Kernel::Vector_2.
|
inlinenodiscard |
Converts to Kernel::Vector_3.
|
nodiscard |
Gets the x value.
|
nodiscard |
Gets the y value.
|
nodiscard |
Gets the z value.