![]() |
![]() |
Functions | |
template<typename T > | |
T | abs (T const &value) |
Short utility to workaround gcc/clang problem that abs is converting to integer and that older versions of MSVC does not support abs of long long... More... | |
template<typename DegreeOrRadian , typename T > | |
T | as_radian (T const &value) |
template<typename T > | |
T | d2r () |
template<typename T1 , typename T2 > | |
bool | equals (T1 const &a, T2 const &b) |
returns true if both arguments are equal. More... | |
template<typename T1 , typename T2 > | |
bool | equals_with_epsilon (T1 const &a, T2 const &b) |
template<typename DegreeOrRadian , typename T > | |
T | from_radian (T const &value) |
template<typename T > | |
T | half_pi () |
template<typename T > | |
T | hav (T const &theta) |
Calculates the haversine of an angle. More... | |
template<typename T1 , typename T2 > | |
bool | larger (T1 const &a, T2 const &b) |
template<typename T1 , typename T2 > | |
bool | larger_or_equals (T1 const &a, T2 const &b) |
template<typename Units , typename CoordinateType > | |
CoordinateType | longitude_distance_signed (CoordinateType const &longitude1, CoordinateType const &longitude2) |
Short utility to calculate difference between two longitudes normalized in range (-180, 180]. More... | |
template<typename Units , typename CoordinateType > | |
CoordinateType | longitude_distance_unsigned (CoordinateType const &longitude1, CoordinateType const &longitude2) |
Short utility to calculate difference between two longitudes normalized in range [0, 360). More... | |
template<typename T > | |
detail::modulo< T >::return_type | mod (T const &value1, T const &value2) |
Short utility to return the modulo of two values. More... | |
template<typename Units , typename CoordinateType > | |
void | normalize_longitude (CoordinateType &longitude) |
Short utility to normalize the longitude on a spheroid. Note that in general both coordinates should be normalized at once. This utility is suitable e.g. for normalization of the difference of longitudes. More... | |
template<typename Units , typename CoordinateType > | |
void | normalize_spheroidal_box_coordinates (CoordinateType &longitude1, CoordinateType &latitude1, CoordinateType &longitude2, CoordinateType &latitude2) |
Short utility to normalize the coordinates of a box on a spheroid. More... | |
template<typename Units , typename CoordinateType > | |
void | normalize_spheroidal_box_coordinates (CoordinateType &longitude1, CoordinateType &latitude1, CoordinateType &longitude2, CoordinateType &latitude2, bool band) |
Short utility to normalize the coordinates of a box on a spheroid. More... | |
template<typename Units , typename CoordinateType > | |
void | normalize_spheroidal_coordinates (CoordinateType &longitude, CoordinateType &latitude) |
Short utility to normalize the coordinates on a spheroid. More... | |
template<typename T > | |
T | pi () |
template<typename T > | |
T | r2d () |
template<typename T > | |
T | relaxed_epsilon (T const &factor) |
template<typename Result , typename T > | |
Result | rounding_cast (T const &v) |
Short utility to cast a value possibly rounding it to the nearest integral value. More... | |
template<typename T > | |
T | scaled_epsilon (T const &value) |
template<typename T > | |
int | sign (T const &value) |
Short utility to calculate the sign of a number: -1 (negative), 0 (zero), 1 (positive) More... | |
template<typename T1 , typename T2 > | |
bool | smaller (T1 const &a, T2 const &b) |
template<typename T1 , typename T2 > | |
bool | smaller_or_equals (T1 const &a, T2 const &b) |
template<typename T > | |
T | sqr (T const &value) |
Short utility to return the square. More... | |
template<typename T > | |
detail::square_root< T > ::return_type | sqrt (T const &value) |
Short utility to return the square root. More... | |
template<typename T > | |
T | two_pi () |
T boost::geometry::math::pi | ( | ) |
T boost::geometry::math::two_pi | ( | ) |
T boost::geometry::math::half_pi | ( | ) |
T boost::geometry::math::relaxed_epsilon | ( | T const & | factor | ) |
T boost::geometry::math::scaled_epsilon | ( | T const & | value | ) |
bool boost::geometry::math::equals | ( | T1 const & | a, |
T2 const & | b | ||
) |
returns true if both arguments are equal.
a | first argument |
b | second argument |
bool boost::geometry::math::equals_with_epsilon | ( | T1 const & | a, |
T2 const & | b | ||
) |
bool boost::geometry::math::smaller | ( | T1 const & | a, |
T2 const & | b | ||
) |
bool boost::geometry::math::larger | ( | T1 const & | a, |
T2 const & | b | ||
) |
bool boost::geometry::math::smaller_or_equals | ( | T1 const & | a, |
T2 const & | b | ||
) |
bool boost::geometry::math::larger_or_equals | ( | T1 const & | a, |
T2 const & | b | ||
) |
T boost::geometry::math::d2r | ( | ) |
T boost::geometry::math::r2d | ( | ) |
T boost::geometry::math::as_radian | ( | T const & | value | ) |
T boost::geometry::math::from_radian | ( | T const & | value | ) |
T boost::geometry::math::hav | ( | T const & | theta | ) |
Calculates the haversine of an angle.
T boost::geometry::math::sqr | ( | T const & | value | ) |
Short utility to return the square.
value | Value to calculate the square from |
detail::square_root<T>::return_type boost::geometry::math::sqrt | ( | T const & | value | ) |
Short utility to return the square root.
value | Value to calculate the square root from |
detail::modulo<T>::return_type boost::geometry::math::mod | ( | T const & | value1, |
T const & | value2 | ||
) |
Short utility to return the modulo of two values.
value1 | First value |
value2 | Second value |
T boost::geometry::math::abs | ( | T const & | value | ) |
Short utility to workaround gcc/clang problem that abs is converting to integer and that older versions of MSVC does not support abs of long long...
int boost::geometry::math::sign | ( | T const & | value | ) |
Short utility to calculate the sign of a number: -1 (negative), 0 (zero), 1 (positive)
Result boost::geometry::math::rounding_cast | ( | T const & | v | ) |
Short utility to cast a value possibly rounding it to the nearest integral value.
void boost::geometry::math::normalize_spheroidal_box_coordinates | ( | CoordinateType & | longitude1, |
CoordinateType & | latitude1, | ||
CoordinateType & | longitude2, | ||
CoordinateType & | latitude2 | ||
) |
Short utility to normalize the coordinates of a box on a spheroid.
Units | The units of the coordindate system in the spheroid |
CoordinateType | The type of the coordinates |
longitude1 | Minimum longitude of the box |
latitude1 | Minimum latitude of the box |
longitude2 | Maximum longitude of the box |
latitude2 | Maximum latitude of the box |
void boost::geometry::math::normalize_spheroidal_box_coordinates | ( | CoordinateType & | longitude1, |
CoordinateType & | latitude1, | ||
CoordinateType & | longitude2, | ||
CoordinateType & | latitude2, | ||
bool | band | ||
) |
Short utility to normalize the coordinates of a box on a spheroid.
Units | The units of the coordindate system in the spheroid |
CoordinateType | The type of the coordinates |
longitude1 | Minimum longitude of the box |
latitude1 | Minimum latitude of the box |
longitude2 | Maximum longitude of the box |
latitude2 | Maximum latitude of the box |
band | Indicates whether the box should be treated as a band or not and avoid the computation done in the other version of the function |
void boost::geometry::math::normalize_spheroidal_coordinates | ( | CoordinateType & | longitude, |
CoordinateType & | latitude | ||
) |
Short utility to normalize the coordinates on a spheroid.
Units | The units of the coordindate system in the spheroid |
CoordinateType | The type of the coordinates |
longitude | Longitude |
latitude | Latitude |
void boost::geometry::math::normalize_longitude | ( | CoordinateType & | longitude | ) |
Short utility to normalize the longitude on a spheroid. Note that in general both coordinates should be normalized at once. This utility is suitable e.g. for normalization of the difference of longitudes.
Units | The units of the coordindate system in the spheroid |
CoordinateType | The type of the coordinates |
longitude | Longitude |
CoordinateType boost::geometry::math::longitude_distance_signed | ( | CoordinateType const & | longitude1, |
CoordinateType const & | longitude2 | ||
) |
Short utility to calculate difference between two longitudes normalized in range (-180, 180].
Units | The units of the coordindate system in the spheroid |
CoordinateType | The type of the coordinates |
longitude1 | Longitude 1 |
longitude2 | Longitude 2 |
CoordinateType boost::geometry::math::longitude_distance_unsigned | ( | CoordinateType const & | longitude1, |
CoordinateType const & | longitude2 | ||
) |
Short utility to calculate difference between two longitudes normalized in range [0, 360).
Units | The units of the coordindate system in the spheroid |
CoordinateType | The type of the coordinates |
longitude1 | Longitude 1 |
longitude2 | Longitude 2 |
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 |