vtf-logo

Point: Angles


Functions

template<typename T>
int geom::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 geom::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>
geom::computePseudoAngle (const ads::FixedArray< 2, T > &vec)
 Return the pseudo-angle between vec and the x axis.
template<int N, typename T>
geom::computeAngle (const ads::FixedArray< N, T > &a, const ads::FixedArray< N, T > &b)
 Return the angle between the two vectors.

Function Documentation

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

Return the angle between the two vectors.

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


Generated on Fri Aug 24 12:56:00 2007 for Computational Geometry Package by  doxygen 1.4.7