2D point in Cartesian coordinate system More...
#include <point_xy.hpp>
Public Member Functions | |
point_xy () | |
Default constructor, does not initialize anything. More... | |
point_xy (CoordinateType const &x, CoordinateType const &y) | |
Constructor with x/y values. More... | |
CoordinateType const & | x () const |
Get x-value. More... | |
CoordinateType const & | y () const |
Get y-value. More... | |
void | x (CoordinateType const &v) |
Set x-value. More... | |
void | y (CoordinateType const &v) |
Set y-value. More... | |
CoordinateType const & | get () const |
Get a coordinate. More... | |
void | set (CoordinateType const &value) |
Set a coordinate. More... | |
2D point in Cartesian coordinate system
CoordinateType | numeric type, for example, double, float, int |
CoordinateSystem | coordinate system, defaults to cs::cartesian |
{before.synopsis, [heading Model of] [link geometry.reference.concepts.concept_point Point Concept] }
{[include reference/geometries/point_assign_warning.qbk]}
|
inline |
Default constructor, does not initialize anything.
|
inline |
Constructor with x/y values.
|
inlineinherited |
Get a coordinate.
K | coordinate to get |
References boost::BOOST_STATIC_ASSERT().
|
inlineinherited |
Set a coordinate.
K | coordinate to set |
value | value to set |
References boost::BOOST_STATIC_ASSERT(), and boost::program_options::value().
|
inline |
Get x-value.
|
inline |
Set x-value.
|
inline |
Get y-value.
|
inline |
Set y-value.