|
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. More... | |
| Coordinate (const Kernel::FT &x, const Kernel::FT &y) | |
| XY Constructor with exact coordinates. More... | |
| Coordinate (const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z) | |
| XYZ Constructor with exact coordinates. More... | |
| Coordinate (const double &x, const double &y, const double &z) | |
| XYZ constructor. More... | |
| Coordinate (const double &x, const double &y) | |
| XY constructor. More... | |
| Coordinate (const Kernel::Point_2 &other) | |
| Constructor from CGAL::Point_2<K> More... | |
| Coordinate (const Kernel::Point_3 &other) | |
| Constructor from CGAL::Point_3<K> More... | |
| Coordinate (const Coordinate &other) | |
| copy constructor More... | |
| auto | operator= (const Coordinate &other) -> Coordinate & |
| assign operator More... | |
| ~Coordinate () | |
| destructor More... | |
| auto | coordinateDimension () const -> int |
| Get the dimension of the coordinates. More... | |
| auto | isEmpty () const -> bool |
| Tests if the coordinates are empty. More... | |
| auto | is3D () const -> bool |
| Tests if Z is defined. More... | |
| auto | x () const -> Kernel::FT |
| Gets the x value. More... | |
| auto | y () const -> Kernel::FT |
| Gets the y value. More... | |
| auto | z () const -> Kernel::FT |
| Gets the z value. More... | |
| auto | round (const long &scaleFactor=1) -> Coordinate & |
| round coordinates with a scale factor More... | |
| auto | operator< (const Coordinate &other) const -> bool |
| Compares two points (lexicographic order) More... | |
| auto | operator== (const Coordinate &other) const -> bool |
| Compares with an other point. More... | |
| auto | operator!= (const Coordinate &other) const -> bool |
| Compares with an other point. More... | |
| auto | almostEqual (const Coordinate &other, double tolerance) const -> bool |
| absolute comparison with an other coordinate More... | |
| auto | toVector_2 () const -> Kernel::Vector_2 |
| Converts to Kernel::Vector_2. More... | |
| auto | toVector_3 () const -> Kernel::Vector_3 |
| Converts to Kernel::Vector_3. More... | |
| auto | toPoint_2 () const -> Kernel::Point_2 |
| Converts to Kernel::Point_2. More... | |
| auto | toPoint_3 () const -> Kernel::Point_3 |
| Converts to Kernel::Point_3. More... | |
| auto | dropZ () -> bool |
| Drops the z coordinate. More... | |
| auto | swapXY () -> void |
| Swaps the x and y coordinates. More... | |
| template<class Archive > | |
| void | save (Archive &ar, const unsigned int) const |
| Save coordinate to archive. More... | |
| template<class Archive > | |
| void | load (Archive &ar, const unsigned int) |
| Load coordinate from archive. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| Serialize coordinate to/from archive. More... | |
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 | ||
| ) |
XY Constructor with exact coordinates.
| x | The X coordinate |
| y | The Y coordinate |
| SFCGAL::Coordinate::Coordinate | ( | const Kernel::FT & | x, |
| const Kernel::FT & | y, | ||
| const Kernel::FT & | z | ||
| ) |
XYZ Constructor with exact coordinates.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| SFCGAL::Coordinate::Coordinate | ( | const double & | x, |
| const double & | y, | ||
| const double & | z | ||
| ) |
XYZ constructor.
| x | The X coordinate |
| y | The Y coordinate |
| z | The Z coordinate |
| SFCGAL::Coordinate::Coordinate | ( | const double & | x, |
| const double & | y | ||
| ) |
XY constructor.
| x | The X coordinate |
| y | The Y coordinate |
| 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
| auto SFCGAL::Coordinate::almostEqual | ( | const Coordinate & | other, |
| double | tolerance | ||
| ) | const -> bool |
absolute comparison with an other coordinate
| other | The coordinate to compare with |
| tolerance | The tolerance for comparison |
| auto SFCGAL::Coordinate::coordinateDimension | ( | ) | const -> int |
Get the dimension of the coordinates.
| auto SFCGAL::Coordinate::dropZ | ( | ) | -> bool |
Drops the z coordinate.
| auto SFCGAL::Coordinate::is3D | ( | ) | const -> bool |
Tests if Z is defined.
| auto SFCGAL::Coordinate::isEmpty | ( | ) | const -> bool |
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.
| auto SFCGAL::Coordinate::toPoint_2 | ( | ) | const -> Kernel::Point_2 |
Converts to Kernel::Point_2.
| auto SFCGAL::Coordinate::toPoint_3 | ( | ) | const -> Kernel::Point_3 |
Converts to Kernel::Point_3.
|
inline |
Converts to Kernel::Vector_2.
|
inline |
Converts to Kernel::Vector_3.
| auto SFCGAL::Coordinate::x | ( | ) | const -> Kernel::FT |
Gets the x value.
| auto SFCGAL::Coordinate::y | ( | ) | const -> Kernel::FT |
Gets the y value.
| auto SFCGAL::Coordinate::z | ( | ) | const -> Kernel::FT |
Gets the z value.
1.8.10