get

# get: get geometries

std::size_t Dimension Dimension
typename Geometry
coordinate_type< Geometry >::type coordinate_type<Geometry>::type boost::geometry::get (Geometry const &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.

Dimension

Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry

Geometry

Any type fulfilling a Geometry Concept (usually a Point Concept)

geometry

A model of the specified concept (usually a point)

The coordinate value of specified dimension of specified geometry

[include reference/core/get_point.qbk]
std::size_t Index Index
std::size_t Dimension Dimension
typename Geometry
coordinate_type< Geometry >::type coordinate_type<Geometry>::type boost::geometry::get (Geometry const &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. Index

Index, 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.

Dimension

Dimension, this template parameter is required. Should contain \[0 .. n-1\] for an n-dimensional geometry

Geometry

Any type fulfilling a Box Concept or a Segment Concept

geometry

A model of the specified concept

coordinate value

with index [include reference/core/get_box.qbk]
std::size_t Dimension Dimension
typename Geometry
fp_coordinate_type< Geometry >::type fp_coordinate_type<Geometry>::type boost::geometry::get_as_radian (Geometry const &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

coordinate value

Dimension

dimension

Geometry

geometry

geometry

geometry to get coordinate value from

Only applicable to coordinate systems templatized by units, e.g. spherical or geographic coordinate systems