Boost.Geometry    Boost C++ Libraries
Public Member Functions | List of all members
boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem > Class Template Reference

2D point in Cartesian coordinate system More...

Inheritance diagram for boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >:
boost::geometry::model::point< CoordinateType, 2, CoordinateSystem >

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...
 
- Public Member Functions inherited from boost::geometry::model::point< CoordinateType, 2, CoordinateSystem >
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...
 

Detailed Description

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
class boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >

2D point in Cartesian coordinate system

Template Parameters
CoordinateTypenumeric type, for example, double, float, int
CoordinateSystemcoordinate system, defaults to cs::cartesian
Examples:
01_point_example.cpp, 02_linestring_example.cpp, 03_polygon_example.cpp, 06_a_transformation_example.cpp, 06_b_transformation_example.cpp, c04_a_custom_triangle_example.cpp, and c05_custom_point_pointer_example.cpp.

Constructor & Destructor Documentation

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::point_xy ( )
default

Default constructor, no initialization.

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::point_xy ( CoordinateType const &  x,
CoordinateType const &  y 
)

Constructor with x/y values.

Member Function Documentation

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
CoordinateType const& boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::x ( ) const

Get x-value.

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
CoordinateType const& boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::y ( ) const

Get y-value.

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
void boost::geometry::model::d2::point_xy< CoordinateType, CoordinateSystem >::x ( CoordinateType const &  v)

Set x-value.

template<typename CoordinateType, typename CoordinateSystem = cs::cartesian>
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
Documentation is generated by Doxygen