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

Function GetSurfaceSlopeAngle

TombEngine/Math/Geometry.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 short GetSurfaceSlopeAngle(const Vector3& normal, const Vector3& axis)
143 {
144 if (normal == -axis)
145 return 0;
146
147 return FROM_RAD(acos(normal.Dot(-axis)));
148 }
149
150 short GetSurfaceAspectAngle(const Vector3& normal, const Vector3& axis)
151 {

Callers 4

GetPushableCollisionFunction · 0.85
IsSteepFloorMethod · 0.85
IsSteepCeilingMethod · 0.85
GetRelOrientToNormalFunction · 0.85

Calls 2

FROM_RADFunction · 0.85
DotMethod · 0.45

Tested by

no test coverage detected