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