// // cocos2d::CCPoint::getAngle from 0xace74c to 0xace88c (320 bytes) // // 2 xrefs: // > cocos2d::ccpAngleSigned @ 0xb1f244 // > @ 0x93d50 // // 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 // __int64 __fastcall cocos2d::CCPoint::getAngle(cocos2d::CCPoint *this, cocos2d::CCPoint *a2) { float v2; // s0 float v3; // s0 cocos2d::CCPoint v6; // [xsp+38h] [xbp+38h] BYREF cocos2d::CCPoint v7; // [xsp+40h] [xbp+40h] BYREF v2 = sqrtf((float)(this->y * this->y) + (float)(this->x * this->x)); if ( v2 == 0.0 ) cocos2d::CCPoint::CCPoint(&v6, 1.0, 0.0); else cocos2d::CCPoint::operator/((float *)this, &v6, v2); v3 = sqrtf((float)(a2->y * a2->y) + (float)(a2->x * a2->x)); if ( v3 == 0.0 ) cocos2d::CCPoint::CCPoint(&v7, 1.0, 0.0); else cocos2d::CCPoint::operator/((float *)a2, &v7, v3); atan2f(-(float)((float)(v6.y * v7.x) - (float)(v6.x * v7.y)), (float)(v7.y * v6.y) + (float)(v6.x * v7.x)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source