Dynamical system model
Loading...
Searching...
No Matches
dsf::geometry::Point Class Reference

Public Member Functions

 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
 

Constructor & Destructor Documentation

◆ Point() [1/2]

dsf::geometry::Point::Point ( double x,
double y )
inline

Construct a Point with given x and y coordinates.

Parameters
xThe x coordinate
yThe 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
strPointThe string representation of the point.
formatThe format of the string representation. Default is "WKT".
Exceptions
std::invalid_argumentif the format is not supported or the string is invalid.

The documentation for this class was generated from the following files: