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

Function VecToAngles

PanzerChasm/math_utils.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4{
5
6void VecToAngles( const m_Vec3& vec, float* out_angle )
7{
8 out_angle[0]= std::atan2( vec.y, vec.x );
9 out_angle[1]= std::atan2( vec.z, vec.xy().Length() );
10}
11
12float NormalizeAngle( const float angle )
13{

Callers 6

DrawEffectsSpritesMethod · 0.85
DrawBMPObjectsSpritesMethod · 0.85
DrawBMPObjectsSpritesMethod · 0.85
DrawEffectsSpritesMethod · 0.85
ShootMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected