Boost.Geometry    Boost C++ Libraries
Functions
get: get geometries

Functions

template<std::size_t Dimension, typename Geometry >
coordinate_type< Geometry >::type boost::geometry::get (Geometry const &geometry)
 Get coordinate value of a geometry (usually a point) More...
 
template<std::size_t Index, std::size_t Dimension, typename Geometry >
coordinate_type< Geometry >::type boost::geometry::get (Geometry const &geometry)
 get coordinate value of a Box or Segment More...
 
template<std::size_t Dimension, typename Geometry >
fp_coordinate_type< Geometry >
::type 
boost::geometry::get_as_radian (Geometry const &geometry)
 get coordinate value of a point, result is in Radian More...
 

Detailed Description

Function Documentation

template<std::size_t Dimension, typename Geometry >
coordinate_type<Geometry>::type boost::geometry::get ( Geometry const &  geometry)

Get coordinate value of a geometry (usually a point)

The free functions [*get] and [*set] are two of the most important functions of Boost.Geometry, both within the library, as also for the library user. With these two functions you normally get and set coordinate values from and for a point, box, segment or sphere.

Template Parameters
DimensionDimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry
GeometryAny type fulfilling a Geometry Concept (usually a Point Concept)
Parameters
geometryA model of the specified concept (usually a point)
Returns
The coordinate value of specified dimension of specified geometry
Examples:
07_a_graph_route_example.cpp, and 07_b_graph_route_example.cpp.
template<std::size_t Index, std::size_t Dimension, typename Geometry >
coordinate_type<Geometry>::type boost::geometry::get ( Geometry const &  geometry)

get coordinate value of a Box or Segment

The free functions [*get] and [*set] are two of the most important functions of Boost.Geometry, both within the library, as also for the library user. With these two functions you normally get and set coordinate values from and for a point, box, segment or sphere.

Template Parameters
IndexIndex, this template parameter is required. For a Box: either min_corner or max_corner. For a Segment: either 0 or 1 for first or last point.
DimensionDimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry
GeometryAny type fulfilling a Box Concept or a Segment Concept
Parameters
geometryA model of the specified concept
Returns
coordinate value
template<std::size_t Dimension, typename Geometry >
fp_coordinate_type<Geometry>::type boost::geometry::get_as_radian ( Geometry const &  geometry)

get coordinate value of a point, result is in Radian

Result is in Radian, even if source coordinate system is in Degrees

Returns
coordinate value
Template Parameters
Dimensiondimension
Geometrygeometry
Parameters
geometrygeometry to get coordinate value from
Note
Only applicable to coordinate systems templatized by units, e.g. spherical or geographic coordinate systems

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