MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Angle

Method Angle

LuaSTGPlus/GameObjectPool.cpp:818–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818bool GameObjectPool::Angle(size_t idA, size_t idB, double& out)LNOEXCEPT
819{
820 GameObject* pA = m_ObjectPool.Data(idA);
821 GameObject* pB = m_ObjectPool.Data(idB);
822 if (!pA || !pB)
823 return false;
824 out = LRAD2DEGREE * atan2(pB->y - pA->y, pB->x - pA->x);
825 return true;
826}
827
828bool GameObjectPool::Dist(size_t idA, size_t idB, double& out)LNOEXCEPT
829{

Callers

nothing calls this directly

Calls 1

DataMethod · 0.80

Tested by

no test coverage detected