//
// cocos2d::CCPoint::getDistance from 0x180093e20 to 0x180093e66 (70 bytes)
//
// 6 xrefs:
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013fe3
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013ff2
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001400d
// > cocos2d::CCMotionStreak::update @ 0x18005d56b
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6648
//
// 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
//
// Alternative name is '?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z'
float __fastcall cocos2d::CCPoint::getDistance(cocos2d::CCPoint *this, 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 * *v2) + (float)(v2[1] * v2[1]);
if ( v3 < 0.0 )
return sqrtf(v3);
else
return fsqrt(v3);
}