MCPcopy Create free account
hub / github.com/doldecomp/mkdd / getAngleToAttack

Method getAngleToAttack

src/Shiraiwa/MapObjWanwan.cpp:566–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566f32 TMapObjWanwan::getAngleToAttack(JGeometry::TVec3f &v) {
567 f32 a = std::atan2f(v.x, v.z);
568 for (; a < -F_PI; a += F_TAU);
569 for (; a >= F_PI; a -= F_TAU);
570
571 return a;
572}
573
574void TMapObjWanwan::InitExec() {
575 Observer_FindAndInit(TMapObjWanwan, 7);

Callers

nothing calls this directly

Calls 1

atan2fFunction · 0.50

Tested by

no test coverage detected