atan2 in cpVect
Posted: Sat Sep 15, 2007 9:55 am
In cpVect.cpp :
There should be :
Thanks for great physics engine!
Code: Select all
__inline cpFloat
cpvtoangle(const cpVect v)
{
return atan2(v.x v.y);
}
Code: Select all
return atan2(v.y, v.x);