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> | |
| T | geom::computePseudoAngle (const ads::FixedArray< 2, T > &vec) |
| Return the pseudo-angle between vec and the x axis. | |
| 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. | |
| 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].
1.4.7