gwnavruntime/math/vec2f.h File Reference
|
| Kaim |
| The Autodesk Navigation namespace.
|
|
|
KyFloat32 | Kaim::SquareDistance (const Vec2f &A, const Vec2f &B) |
| Returns the square of the distance between A and B. More...
|
|
KyFloat32 | Kaim::Distance (const Vec2f &A, const Vec2f &B) |
| Returns the distance between A and B. More...
|
|
Vec2f | Kaim::GetNormalized (const Vec2f &v) |
| Returns normalized v, returns {0.0f, 0.0f} if v is zero. More...
|
|
Vec2f | Kaim::Dir (const Vec2f &A, const Vec2f &B) |
| Returns the normalized direction AB, returns zero if A == B. More...
|
|
bool | Kaim::IsEpsilonZero (const Vec2f &v) |
|
bool | Kaim::IsEpsilonEqual (const Vec2f &v1, const Vec2f &v2) |
|
bool | Kaim::IsEpsilonDifferent (const Vec2f &A, const Vec2f &B) |
|
|
KyFloat32 | Kaim::GetPositiveAngleCCW (const Vec2f &v1, const Vec2f &v2) |
| Returns the positive angle in [0,2PI[ of the CounterClockwise rotation from v1 to v2. More...
|
|
KyFloat32 | Kaim::GetPositiveAngleCW (const Vec2f &v1, const Vec2f &v2) |
| Returns the positive angle in [0,2PI[ of the Clockwise rotation from v1 to v2. More...
|
|
KyFloat32 | Kaim::GetPositiveAngle (const Vec2f &v1, const Vec2f &v2, Winding::Enum winding) |
| Returns the positive angle in [0,2PI[ of the CounterClockwise or Clockwise rotation from v1 to v2. In radians. More...
|
|
KyFloat32 | Kaim::GetSignedAngle (const Vec2f &v1, const Vec2f &v2, Winding::Enum winding) |
| Returns the signed (>0 for CCW <0 for CW) angle in ]-2PI,2PI[ of the CounterClockwise or Clockwise rotation from v1 to v2. In radians. More...
|
|
void | Kaim::Rotate (Vec2f &v, KyFloat32 cosAngle, KyFloat32 sinAngle) |
| Rotate v by the provided cosAngle, sinAngle. Positive angles rotate CCW. More...
|
|
Vec2f | Kaim::BisectorCCW (const Vec2f &dir1, const Vec2f &dir2) |
|
Vec2f | Kaim::BisectorCCW (const Vec2f &A, const Vec2f &B, const Vec2f &C) |
|
bool | Kaim::Dir2dLessCCW (const Vec2f &dir_ref, const Vec2f &dir_a, const Vec2f &dir_b) |
| Returns true when the CCW angle (dir_ref, dir_a) is strictly less than CCW angle (dir_ref, dir_b). More...
|
|
bool | Kaim::Dir2dLessCW (const Vec2f &dir_ref, const Vec2f &dir_a, const Vec2f &dir_b) |
| Returns true when the CW angle (dir_ref, dir_a) is strictly less than CCW angle (dir_ref, dir_b). More...
|
|
|
KyFloat32 | Kaim::Dot (const Vec2f &v1, const Vec2f &v2) |
|
KyFloat32 | Kaim::Cross_z (const Vec2f &v1, const Vec2f &v2) |
|
KyFloat32 | Kaim::Cross (const Vec2f &v1, const Vec2f &v2) |
|
KyFloat32 | Kaim::SqDist (const Vec2f &A, const Vec2f &B) |
|
KyFloat32 | Kaim::Dist (const Vec2f &A, const Vec2f &B) |
|
Go to the source code of this file.