MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / NormalizeAngle

Function NormalizeAngle

PanzerChasm/math_utils.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12float NormalizeAngle( const float angle )
13{
14 return
15 std::fmod(
16 std::fmod( angle, Constants::two_pi ) + Constants::two_pi,
17 Constants::two_pi );
18}
19
20float DistanceToLineSegment(
21 const m_Vec2& from,

Callers 2

RotateToTargetMethod · 0.85
MonsterBaseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected