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>
|
| | 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
|
| |
| Coordinate & | operator= (const Coordinate &other) |
| | assign operator
|
| |
| | ~Coordinate () |
| | destructor
|
| |
| int | coordinateDimension () const |
| | Get the dimension of the coordinates.
|
| |
| bool | isEmpty () const |
| | Tests if the coordinates are empty.
|
| |
| bool | is3D () const |
| | Tests if Z is defined.
|
| |
| Kernel::FT | x () const |
| | Gets the x value.
|
| |
| Kernel::FT | y () const |
| | Gets the y value.
|
| |
| Kernel::FT | z () const |
| | Gets the z value.
|
| |
| Coordinate & | round (const long &scaleFactor=1) |
| | round coordinates with a scale factor
|
| |
| bool | operator< (const Coordinate &other) const |
| | Compares two points (lexicographic order)
|
| |
| bool | operator== (const Coordinate &other) const |
| | Compares with an other point.
|
| |
| bool | operator!= (const Coordinate &other) const |
| | Compares with an other point.
|
| |
| Kernel::Vector_2 | toVector_2 () const |
| | Converts to Kernel::Vector_2.
|
| |
| Kernel::Vector_3 | toVector_3 () const |
| | Converts to Kernel::Vector_3.
|
| |
| Kernel::Point_2 | toPoint_2 () const |
| | Converts to Kernel::Point_2.
|
| |
| Kernel::Point_3 | toPoint_3 () const |
| | Converts to Kernel::Point_3.
|
| |
| template<class Archive > |
| void | save (Archive &ar, const unsigned int) const |
| | Serialization.
|
| |
| template<class Archive > |
| void | load (Archive &ar, const unsigned int) |
| |
| template<class Archive > |
| void | serialize (Archive &ar, const unsigned int version) |
| |
Represents the Coordinate of a Point (wraps either an empty structure, or a Kernel::Point_2, or a Kernel::Point_3)
◆ Coordinate() [1/8]
| SFCGAL::Coordinate::Coordinate |
( |
| ) |
|
◆ Coordinate() [2/8]
| SFCGAL::Coordinate::Coordinate |
( |
const Kernel::FT & |
x, |
|
|
const Kernel::FT & |
y |
|
) |
| |
XY Constructor with exact coordinates.
◆ Coordinate() [3/8]
| SFCGAL::Coordinate::Coordinate |
( |
const Kernel::FT & |
x, |
|
|
const Kernel::FT & |
y, |
|
|
const Kernel::FT & |
z |
|
) |
| |
XYZ Constructor with exact coordinates.
◆ Coordinate() [4/8]
| SFCGAL::Coordinate::Coordinate |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
z |
|
) |
| |
XYZ constructor.
- Warning
- x,y,z must not be not be NaN nor inf
◆ Coordinate() [5/8]
| SFCGAL::Coordinate::Coordinate |
( |
const double & |
x, |
|
|
const double & |
y |
|
) |
| |
XY constructor.
- Warning
- x,y must not be not be NaN nor inf
◆ Coordinate() [6/8]
| SFCGAL::Coordinate::Coordinate |
( |
const Kernel::Point_2 & |
other | ) |
|
Constructor from CGAL::Point_2<K>
◆ Coordinate() [7/8]
| SFCGAL::Coordinate::Coordinate |
( |
const Kernel::Point_3 & |
other | ) |
|
Constructor from CGAL::Point_3<K>
◆ Coordinate() [8/8]
| SFCGAL::Coordinate::Coordinate |
( |
const Coordinate & |
other | ) |
|
◆ ~Coordinate()
| SFCGAL::Coordinate::~Coordinate |
( |
| ) |
|
◆ coordinateDimension()
| int SFCGAL::Coordinate::coordinateDimension |
( |
| ) |
const |
Get the dimension of the coordinates.
◆ is3D()
| bool SFCGAL::Coordinate::is3D |
( |
| ) |
const |
◆ isEmpty()
| bool SFCGAL::Coordinate::isEmpty |
( |
| ) |
const |
Tests if the coordinates are empty.
◆ load()
template<class Archive >
| void SFCGAL::Coordinate::load |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| |
|
inline |
◆ operator!=()
| bool SFCGAL::Coordinate::operator!= |
( |
const Coordinate & |
other | ) |
const |
Compares with an other point.
- Warning
- coordinates must have the same dimension
◆ operator<()
| bool SFCGAL::Coordinate::operator< |
( |
const Coordinate & |
other | ) |
const |
Compares two points (lexicographic order)
- Warning
- coordinates must have the same dimension
◆ operator=()
◆ operator==()
| bool SFCGAL::Coordinate::operator== |
( |
const Coordinate & |
other | ) |
const |
Compares with an other point.
- Warning
- coordinates must have the same dimension
◆ round()
| Coordinate & SFCGAL::Coordinate::round |
( |
const long & |
scaleFactor = 1 | ) |
|
round coordinates with a scale factor
- Returns
- *this
◆ save()
template<class Archive >
| void SFCGAL::Coordinate::save |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| const |
|
inline |
◆ serialize()
template<class Archive >
| void SFCGAL::Coordinate::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
◆ toPoint_2()
| Kernel::Point_2 SFCGAL::Coordinate::toPoint_2 |
( |
| ) |
const |
Converts to Kernel::Point_2.
◆ toPoint_3()
| Kernel::Point_3 SFCGAL::Coordinate::toPoint_3 |
( |
| ) |
const |
Converts to Kernel::Point_3.
◆ toVector_2()
| Kernel::Vector_2 SFCGAL::Coordinate::toVector_2 |
( |
| ) |
const |
|
inline |
Converts to Kernel::Vector_2.
◆ toVector_3()
| Kernel::Vector_3 SFCGAL::Coordinate::toVector_3 |
( |
| ) |
const |
|
inline |
Converts to Kernel::Vector_3.
◆ x()
| Kernel::FT SFCGAL::Coordinate::x |
( |
| ) |
const |
Gets the x value.
- Warning
- Exact, NaN for empty coordinates
◆ y()
| Kernel::FT SFCGAL::Coordinate::y |
( |
| ) |
const |
Gets the y value.
- Warning
- Exact, NaN for empty coordinates
◆ z()
| Kernel::FT SFCGAL::Coordinate::z |
( |
| ) |
const |
Gets the z value.
- Warning
- Exact, NaN for empty or 0 for 2D coordinates