Point: Angles

Functions

template<typename T >
int computeSignOfTurn (const ads::FixedArray< 2, T > &p, const ads::FixedArray< 2, T > &q, const ads::FixedArray< 2, T > &r)
 Positive turn: return 1. No turn: return 0. Negative turn: return -1.
template<typename T >
int computeApproximateSignOfTurn (const ads::FixedArray< 2, T > &p, const ads::FixedArray< 2, T > &q, const ads::FixedArray< 2, T > &r)
 Positive turn: return 1. No turn: return 0. Negative turn: return -1.
template<typename T >
computePseudoAngle (const ads::FixedArray< 2, T > &vec)
 Return the pseudo-angle between vec and the x axis.
template<int N, typename T >
computeAngle (const ads::FixedArray< N, T > &a, const ads::FixedArray< N, T > &b)
 Return the angle between the two vectors.

Detailed Description


Function Documentation

template<int N, typename T >
T computeAngle ( const ads::FixedArray< N, T > &  a,
const ads::FixedArray< N, T > &  b 
) [inline]

Return the angle between the two vectors.

The angle is in the range [0..pi].

Generated on Thu Jun 30 02:14:58 2016 for Computational Geometry Package by  doxygen 1.6.3