//
// cocos2d::CCPoint::getLength from 0x18000cb80 to 0x18000cbad (45 bytes)
//
// 8 xrefs:
// > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x180012144
// > cocos2d::CCLens3D::update @ 0x18002d9ce
// > cocos2d::CCLens3D::update @ 0x18002da16
// > cocos2d::CCLens3D::update @ 0x18002da64
// > cocos2d::CCRipple3D::update @ 0x18002de6e
// > cocos2d::CCTwirl::update @ 0x18002e2c6
// > cocos2d::CCLayerGradient::updateColor @ 0x18005142f
// > ??> @ 0x1801438a8
//
// 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 '?ccpLength@cocos2d@@YAMAEBVCCPoint@1@@Z'
float __fastcall cocos2d::CCPoint::getLength(cocos2d::CCPoint *this)
{
float v1; // xmm1_4
v1 = (float)(this->x * this->x) + (float)(this->y * this->y);
if ( v1 < 0.0 )
return sqrtf(v1);
else
return fsqrt(v1);
}