#include <qgarlib/primitives.H>
Global functions to compute angles between vectors | |
| |
| template<class T> | |
| double | qgar::qgAngle (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2) |
| Angle (in [0, 2PI[ radians) between the X axis and the vector formed by the two given points. | |
| template<class T> | |
| double | qgar::qgAngleDegrees (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2) |
| Same as qgar::qgAngle(const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 360[ degrees. | |
| template<class T> | |
| double | qgar::qgAngle (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2, const GenPoint< T > &aPt3) |
| Angle (in [0, 2PI[ radians) between two vectors determined by 3 points. | |
| template<class T> | |
| double | qgar::qgAngleDegrees (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2, const GenPoint< T > &aPt3) |
| Same as qgar::qgAngle(const GenPoint<T>&,const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 360[ degrees. | |
| template<class T> | |
| double | qgar::qgAngle (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2, const GenPoint< T > &aPt3, const GenPoint< T > &aPt4) |
| Angle (in [0, 2PI[ radians) between two vectors determined by 4 points. | |
| template<class T> | |
| double | qgar::qgAngleDegrees (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2, const GenPoint< T > &aPt3, const GenPoint< T > &aPt4) |
| Same as qgar::qgAngle(const GenPoint<T>&,const GenPoint<T>&, const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 360[ degrees. | |
| template<class T> | |
| double | qgar::qgSlope (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2) |
| Angle (in [0, PI[ radians) between the X axis and the segment formed by the two given points. | |
| template<class T> | |
| double | qgar::qgSlopeDegrees (const GenPoint< T > &aPt1, const GenPoint< T > &aPt2) |
| Same as qgar::qgSlope(const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 180[ degrees. | |
|
||||||||||||||||||||||||
|
Angle (in [0, 2PI[ radians) between two vectors determined by 4 points. First vector is aPt1-->aPt2, second vector is aPt3-->aPt4. 0 +----------------------> X +-------------------------> X | | ---- | | / \ | aPt1 | | v aPt3 | \----+------>+ aPt2 | | \-----+------>+ aPt4 | \ | | \ __\ | aPt3 + | | \ | \<--' | + aPt1 | \ | \ | v | v | + aPt4 | + aPt2 v v Y Y
Definition at line 183 of file _QGAR_angle.TCC. References qgar::Math::QG_2PI, and qgar::qgAngle(). |
|
||||||||||||||||||||
|
Angle (in [0, 2PI[ radians) between two vectors determined by 3 points. First vector is aPt1-->aPt2, second vector is aPt1-->aPt3. 0 +---------------------> X +---------------------> X | | ---- | | / \ | aPt1 | | v | +--------->+ aPt2 | | +------->+ aPt3 | \ | | \ __\ | \ <-' | \ | \ | \ | v | v | + aPt3 | + aPt2 v v Y Y
Definition at line 136 of file _QGAR_angle.TCC. References qgar::qgAngle(). |
|
||||||||||||||||
|
Angle (in [0, 2PI[ radians) between the X axis and the vector formed by the two given points.
----->/ O O / / +---------------> X +---------|-------------> X | \ | | | / | | \ <-' angle | angle \_ /__/ | \ | / | + aPt1 | + aPt2 | \ | ^ | \ | / | v | / v + aPt2 v + aPt1 Y Y
Definition at line 91 of file _QGAR_angle.TCC. References qgar::Math::QG_2PI. Referenced by qgar::GenConvexHull< T >::PRIVATEgraham_sScan(), qgar::qgAngle(), qgar::qgAngleDegrees(), qgar::qgSlope(), qgar::RWArcVector::RWArcVector(), qgar::GenArc< T >::sourceAngle(), qgar::GenArc< T >::targetAngle(), and qgar::GenSegment< T >::theta(). |
|
||||||||||||||||||||||||
|
Same as qgar::qgAngle(const GenPoint<T>&,const GenPoint<T>&, const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 360[ degrees.
Definition at line 202 of file _QGAR_angle.TCC. References qgar::qgAngle(), and qgar::qgRadiansToDegrees(). |
|
||||||||||||||||||||
|
Same as qgar::qgAngle(const GenPoint<T>&,const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 360[ degrees.
Definition at line 148 of file _QGAR_angle.TCC. References qgar::qgAngle(), and qgar::qgRadiansToDegrees(). |
|
||||||||||||||||
|
Same as qgar::qgAngle(const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 360[ degrees.
Definition at line 104 of file _QGAR_angle.TCC. References qgar::qgAngle(), and qgar::qgRadiansToDegrees(). |
|
||||||||||||||||
|
Angle (in [0, PI[ radians) between the X axis and the segment formed by the two given points.
O O +-----------------> X +-----------------> X | \ | | \ | | \ <-' angle | \ <-' angle | \ | \ | + aPt1 | + aPt2 | \ | \ | \ | \ | \ | \ v + aPt2 v + aPt1 Y Y
Definition at line 236 of file _QGAR_angle.TCC. References qgar::Math::QG_PI, and qgar::qgAngle(). Referenced by qgar::qgSlopeDegrees(), and qgar::GenSegment< T >::slope(). |
|
||||||||||||||||
|
Same as qgar::qgSlope(const GenPoint<T>&, const GenPoint<T>&), but the result is given in [0, 180[ degrees.
Definition at line 248 of file _QGAR_angle.TCC. References qgar::qgRadiansToDegrees(), and qgar::qgSlope(). |