gwnavruntime/math/rotation.h Source File
Go to the documentation of this file.
7 #ifndef Navigation_Rotation_H
8 #define Navigation_Rotation_H
22 UninitializedRotationDirection,
23 UndefinedRotationDirection,
28 KY_INLINE
bool IsADefinedRotationDirection(
RotationDirection rotDir) {
return rotDir == Clockwise || rotDir == CounterClockwise; }
30 KY_INLINE
const char* GetRotationDirectionLabel(
RotationDirection rotationDirection)
32 switch (rotationDirection)
34 case UninitializedRotationDirection :
return "!!! Not initialized !!! ";
35 case UndefinedRotationDirection :
return "UndefinedRotationDirection";
36 case Clockwise :
return "Clockwise ";
37 case CounterClockwise :
return "CounterClockwise ";
48 (rotDir == Clockwise ) ? FunnelRight :
49 (rotDir == CounterClockwise) ? FunnelLeft :
64 KY_INLINE
void GetTurnRangeResultLabel(
const IsInTurnRangeResult result, StringStream& text)
68 case InTurnRange: text <<
"InTurnRange ";
break;
69 case SmallTurnRange: text <<
"SmallTurnRange ";
break;
70 case NearTurnRangeStart: text <<
"NearTurnRangeStart";
break;
71 case NearTurnRangeEnd: text <<
"NearTurnRangeEnd ";
break;
72 case OutOfTurnRange: text <<
"OutOfTurnRange ";
break;
80 #endif // Navigation_Rotation_H
RotationDirection
Defines the 4 possible cases of possibly constrained rotation in the horizontal plane for a given ele...
Definition: rotation.h:20
Definition: gamekitcrowddispersion.h:20
IsInTurnRangeResult
Defines the relative position of a direction, given a rotation direction and bounding directions...
Definition: rotation.h:55
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43