Boost.Geometry    Boost C++ Libraries
Public Member Functions | List of all members
boost::geometry::strategy::side::mapping_spherical_side_formula< Spheroid, Mapping, CalculationType > Class Template Reference

Check at which side of a geographical segment a point lies left of segment (> 0), right of segment (< 0), on segment (0). The check is performed by mapping the geographical coordinates to spherical coordinates and using spherical_side_formula. More...

Public Member Functions

template<typename P1 , typename P2 , typename P >
int apply (P1 const &p1, P2 const &p2, P const &p)
 
 mapping_spherical_side_formula ()
 
 mapping_spherical_side_formula (Spheroid const &spheroid)
 

Detailed Description

template<typename Spheroid, mapping_type Mapping = mapping_geodetic, typename CalculationType = void>
class boost::geometry::strategy::side::mapping_spherical_side_formula< Spheroid, Mapping, CalculationType >

Check at which side of a geographical segment a point lies left of segment (> 0), right of segment (< 0), on segment (0). The check is performed by mapping the geographical coordinates to spherical coordinates and using spherical_side_formula.

Template Parameters
SpheroidThe reference spheroid model
MappingThe type of mapping of geographical to spherical latitude
CalculationTypenumeric type for calculation (e.g. high precision); if [*void] then it is extracted automatically from the coordinate type and (if necessary) promoted to floating point

Constructor & Destructor Documentation

template<typename Spheroid , mapping_type Mapping = mapping_geodetic, typename CalculationType = void>
boost::geometry::strategy::side::mapping_spherical_side_formula< Spheroid, Mapping, CalculationType >::mapping_spherical_side_formula ( )
template<typename Spheroid , mapping_type Mapping = mapping_geodetic, typename CalculationType = void>
boost::geometry::strategy::side::mapping_spherical_side_formula< Spheroid, Mapping, CalculationType >::mapping_spherical_side_formula ( Spheroid const &  spheroid)
explicit

Member Function Documentation

template<typename Spheroid , mapping_type Mapping = mapping_geodetic, typename CalculationType = void>
template<typename P1 , typename P2 , typename P >
int boost::geometry::strategy::side::mapping_spherical_side_formula< Spheroid, Mapping, CalculationType >::apply ( P1 const &  p1,
P2 const &  p2,
P const &  p 
)

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