// // cocos2d::ccpNormalize from 0x5eb3b0 to 0x5eb3f8 (72 bytes) // // 15 xrefs: // > GJBaseGameLayer::triggerMoveCommand @ 0x481b36 // > GJBaseGameLayer::processDynamicObjectActions @ 0x4833f2 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x48a48c // > GJBaseGameLayer::processAdvancedFollowAction @ 0x48a9c2 // > cocos2d::CCLens3D::update @ 0x5b449a // > sub_5C4CF4 @ 0x5c4d16 // > cocos2d::CCParticleSystem::update @ 0x5dbcf6 // > cocos2d::CCParticleSystem::update @ 0x5dbee0 // > cocos2d::ccpAngle @ 0x5eb752 // > cocos2d::ccpAngle @ 0x5eb75a // > cocos2d::ccVertexLineToPolygon @ 0x5ec306 // > cocos2d::ccVertexLineToPolygon @ 0x5ec344 // > cocos2d::ccVertexLineToPolygon @ 0x5ec35a // > cocos2d::ccVertexLineToPolygon @ 0x5ec3d8 // > cocos2d::ccVertexLineToPolygon @ 0x5ec3f8 // // 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 // cocos2d::CCPoint *cocos2d::ccpNormalize(cocos2d::CCPoint *__return_ptr retstr, const cocos2d::CCPoint *a2) { float v4; // s15 v4 = sqrtf((float)(a2->y * a2->y) + (float)(a2->x * a2->x)); if ( v4 == 0.0 ) cocos2d::CCPoint::CCPoint(retstr, 1.0, 0.0); else cocos2d::CCPoint::operator/(retstr, &a2->x, v4); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source