//
// cocos2d::CCPoint::getAngle from 0x5bf1ec to 0x5bf26c (128 bytes)
//
// 1 xrefs:
// > cocos2d::ccpAngleSigned @ 0x5eb55c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float __fastcall cocos2d::CCPoint::getAngle(cocos2d::CCPoint *this, const cocos2d::CCPoint *a2)
{
float result; // r0
cocos2d::CCPoint v4; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v5; // [sp+Ch] [bp-10h] BYREF
cocos2d::CCPoint::normalize(&v4, &this->x);
cocos2d::CCPoint::normalize(&v5, &a2->x);
result = atan2f((float)(v4.x * v5.y) - (float)(v4.y * v5.x), (float)(v4.y * v5.y) + (float)(v4.x * v5.x));
if ( fabsf(result) < 0.00000011921 )
return 0.0;
return result;
}