|
| | Point (double x, double y) |
| | Construct a Point with given x and y coordinates.
|
| |
| | Point (std::string const &strPoint, std::string const &format="WKT") |
| | Construct a Point from a string representation.
|
| |
|
bool | operator== (const Point &other) const |
| | Equality operator for Point.
|
| |
|
template<std::size_t Index> |
| double const & | get () const |
| | Support for structured bindings, e.g., auto const& [x, y] = point;.
|
| |
|
double const & | x () const |
| |
|
double const & | y () const |
| |
◆ Point() [1/2]
| dsf::geometry::Point::Point |
( |
double | x, |
|
|
double | y ) |
|
inline |
Construct a Point with given x and y coordinates.
- Parameters
-
| x | The x coordinate |
| y | The y coordinate |
◆ Point() [2/2]
| dsf::geometry::Point::Point |
( |
std::string const & | strPoint, |
|
|
std::string const & | format = "WKT" ) |
Construct a Point from a string representation.
- Parameters
-
| strPoint | The string representation of the point. |
| format | The format of the string representation. Default is "WKT". |
- Exceptions
-
| std::invalid_argument | if the format is not supported or the string is invalid. |
The documentation for this class was generated from the following files:
- src/dsf/geometry/Point.hpp
- src/dsf/geometry/Point.cpp