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

Function GetSurfaceAspectAngle

TombEngine/Math/Geometry.cpp:150–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 short GetSurfaceAspectAngle(const Vector3& normal, const Vector3& axis)
151 {
152 if (normal == -axis)
153 return 0;
154
155 // TODO: Consider axis.
156 return FROM_RAD(atan2(normal.x, normal.z));
157 }
158
159 BoundingBox GetAabb(const BoundingOrientedBox& box)
160 {

Callers 5

SetLaraSlideAnimationFunction · 0.85
TestGroundMovementSetupFunction · 0.85
SetSectorAttribsFunction · 0.85
GetRelOrientToNormalFunction · 0.85

Calls 1

FROM_RADFunction · 0.85

Tested by 1

TestGroundMovementSetupFunction · 0.68