// // getDistance from 0x2f0b80 to 0x2f0bc2 (66 bytes) // // 0 xrefs: // // 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 getDistance(const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2) { float DistanceSquared; // r0 cocos2d::CCPoint v5; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v6; // [sp+Ch] [bp-10h] BYREF cocos2d::CCPoint::CCPoint(&v5, a1); cocos2d::CCPoint::CCPoint(&v6, a2); DistanceSquared = getDistanceSquared(&v5.x, &v6.x); return sqrtf(DistanceSquared); }
GD Web Decomp Icon

GD Web Decomp

Raw Source