...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Check at which side of a segment a point lies: left of segment (> 0), right of segment (< 0), on segment (0)
template<typename CalculationType> class strategy::side::side_by_triangle { // ... };
Parameter |
Default |
Description |
---|---|---|
typename CalculationType |
void |
numeric 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 |
Function |
Description |
Parameters |
Returns |
---|---|---|---|
template<typename CoordinateType, typename PromotedType, typename P1, typename P2, typename P, typename EpsPolicy> PromotedType side_value(P1 const & p1, P2 const & p2, P const & p, EpsPolicy & eps_policy)
|
P1 const &: p1: P2 const &: p2: P const &: p: EpsPolicy &: eps_policy: |
||
template<typename CoordinateType, typename PromotedType, typename P1, typename P2, typename P> PromotedType side_value(P1 const & p1, P2 const & p2, P const & p)
|
P1 const &: p1: P2 const &: p2: P const &: p: |
||
template<typename P1, typename P2, typename P> int apply(P1 const & p1, P2 const & p2, P const & p)
|
P1 const &: p1: P2 const &: p2: P const &: p: |
#include <boost/geometry/strategy/cartesian/side_by_triangle.hpp>