// // cocos2d::CCPoint::getDistance from 0x1800975a0 to 0x1800975e6 (70 bytes) // // 6 xrefs: // > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001404f // > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001405d // > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180014079 // > cocos2d::CCMotionStreak::update @ 0x18005f723 // > @ 0x18014cf68 // > @ 0x1801c08e8 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:10 +0000 // // Alternative name is '?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z' float __fastcall cocos2d::CCPoint::getDistance(cocos2d::CCPoint *this, const struct cocos2d::CCPoint *a2) { float *v2; // rax float v3; // xmm1_4 float v5; // [rsp+40h] [rbp+18h] BYREF v2 = cocos2d::CCSize::operator-((float *)this, &v5, (float *)a2); v3 = (float)(v2[1] * v2[1]) + (float)(*v2 * *v2); if ( v3 < 0.0 ) return sqrtf(v3); else return fsqrt(v3); }