![]() |
![]() |
2D point in Cartesian coordinate system More...
Public Member Functions | |
point_xy ()=default | |
Default constructor, no initialization. More... | |
point_xy (CoordinateType const &x, CoordinateType const &y) | |
Constructor with x/y values. More... | |
CoordinateType const & | x () const |
Get x-value. More... | |
void | x (CoordinateType const &v) |
Set x-value. More... | |
CoordinateType const & | y () const |
Get y-value. More... | |
void | y (CoordinateType const &v) |
Set y-value. More... | |
![]() | |
CoordinateType const & | get () const |
Get a coordinate. More... | |
point ()=default | |
Default constructor, no initialization. More... | |
point (CoordinateType const &v0) | |
Constructor to set one value. More... | |
point (CoordinateType const &v0, CoordinateType const &v1) | |
Constructor to set two values. More... | |
point (CoordinateType const &v0, CoordinateType const &v1, CoordinateType const &v2) | |
Constructor to set three values. 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 |
|
default |
Default constructor, no initialization.
boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::point_xy | ( | CoordinateType const & | x, |
CoordinateType const & | y | ||
) |
Constructor with x/y values.
CoordinateType const& boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::x | ( | ) | const |
Get x-value.
CoordinateType const& boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::y | ( | ) | const |
Get y-value.
void boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::x | ( | CoordinateType const & | v | ) |
Set x-value.
void boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::y | ( | CoordinateType const & | v | ) |
Set y-value.
April 2, 2011 |
Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands Copyright © 2008-2011 Bruno Lalande, Paris, France Copyright © 2009-2010 Mateusz Loskot, London, UK |