![]() |
![]() |
Functions | |
template<typename Geometry1 , typename Geometry2 , typename Strategy > | |
comparable_distance_result < Geometry1, Geometry2, Strategy >::type | boost::geometry::comparable_distance (Geometry1 const &geometry1, Geometry2 const &geometry2, Strategy const &strategy) |
Calculate the comparable distance measurement of two geometries using the specified strategy. More... | |
template<typename Geometry1 , typename Geometry2 > | |
default_comparable_distance_result < Geometry1, Geometry2 >::type | boost::geometry::comparable_distance (Geometry1 const &geometry1, Geometry2 const &geometry2) |
Calculate the comparable distance measurement of two geometries. More... | |
template<typename Geometry1 , typename Geometry2 , typename Strategy > | |
distance_result< Geometry1, Geometry2, Strategy >::type | boost::geometry::distance (Geometry1 const &geometry1, Geometry2 const &geometry2, Strategy const &strategy) |
Calculate the distance of two geometries using the specified strategy. More... | |
template<typename Geometry1 , typename Geometry2 > | |
default_distance_result < Geometry1, Geometry2 >::type | boost::geometry::distance (Geometry1 const &geometry1, Geometry2 const &geometry2) |
Calculate the distance of two geometries. More... | |
comparable_distance_result<Geometry1, Geometry2, Strategy>::type boost::geometry::comparable_distance | ( | Geometry1 const & | geometry1, |
Geometry2 const & | geometry2, | ||
Strategy const & | strategy | ||
) |
Calculate the comparable distance measurement of two geometries using the specified strategy.
The free function comparable_distance does not necessarily calculate the distance, but it calculates a distance measure such that two distances are comparable to each other. For example: for the Cartesian coordinate system, Pythagoras is used but the square root is not taken, which makes it faster and the results of two point pairs can still be compared to each other.
Geometry1 | first geometry type |
Geometry2 | second geometry type |
Strategy | Any type fulfilling a Distance Strategy Concept |
geometry1 | A model of the specified concept |
geometry2 | A model of the specified concept |
strategy | The strategy which will be used for distance calculations |
default_comparable_distance_result<Geometry1, Geometry2>::type boost::geometry::comparable_distance | ( | Geometry1 const & | geometry1, |
Geometry2 const & | geometry2 | ||
) |
Calculate the comparable distance measurement of two geometries.
The free function comparable_distance does not necessarily calculate the distance, but it calculates a distance measure such that two distances are comparable to each other. For example: for the Cartesian coordinate system, Pythagoras is used but the square root is not taken, which makes it faster and the results of two point pairs can still be compared to each other.
Geometry1 | first geometry type |
Geometry2 | second geometry type |
geometry1 | A model of the specified concept |
geometry2 | A model of the specified concept |
distance_result<Geometry1, Geometry2, Strategy>::type boost::geometry::distance | ( | Geometry1 const & | geometry1, |
Geometry2 const & | geometry2, | ||
Strategy const & | strategy | ||
) |
Calculate the distance of two geometries using the specified strategy.
The free function area calculates the area of a geometry. using the specified strategy. Reasons to specify a strategy include: use another coordinate system for calculations; construct the strategy beforehand (e.g. with the radius of the Earth); select a strategy when there are more than one available for a calculation.
Geometry1 | Any type fulfilling a Geometry Concept |
Geometry2 | Any type fulfilling a Geometry Concept |
Strategy | Any type fulfilling a Distance Strategy Concept |
geometry1 | A model of the specified concept |
geometry2 | A model of the specified concept |
strategy | The strategy which will be used for distance calculations |
default_distance_result<Geometry1, Geometry2>::type boost::geometry::distance | ( | Geometry1 const & | geometry1, |
Geometry2 const & | geometry2 | ||
) |
Calculate the distance of two geometries.
The default strategy is used, corresponding to the coordinate system of the geometries
Geometry1 | Any type fulfilling a Geometry Concept |
Geometry2 | Any type fulfilling a Geometry Concept |
geometry1 | A model of the specified concept |
geometry2 | A model of the specified concept |
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 |