MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetShortestAngle

Function GetShortestAngle

TombEngine/Math/Geometry.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 short GetShortestAngle(short fromAngle, short toAngle)
135 {
136 if (fromAngle == toAngle)
137 return 0;
138
139 return short(toAngle - fromAngle);
140 }
141
142 short GetSurfaceSlopeAngle(const Vector3& normal, const Vector3& axis)
143 {

Callers 10

ControlTwinAutoGunFunction · 0.85
IsNextSectorValidFunction · 0.85
TestGroundMovementSetupFunction · 0.85
SetSectorAttribsFunction · 0.85
HandleDiagonalShiftFunction · 0.85
DrawMethod · 0.85
GetRelOrientToNormalFunction · 0.85
CompareMethod · 0.85
LerpMethod · 0.85
InterpolateConstantMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestGroundMovementSetupFunction · 0.68