//
// cocos2d::CCPoint::rotateByAngle from 0x5bf278 to 0x5bf2fa (130 bytes)
//
// 1 xrefs:
// > cocos2d::ccpRotateByAngle @ 0x5eb564
//
// 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 *__fastcall cocos2d::CCPoint::rotateByAngle(
cocos2d::CCPoint *this,
const cocos2d::CCPoint *a2,
float *a3,
float a4)
{
float v7; // r8
float v8; // r0
cocos2d::CCPoint v10; // [sp+4h] [bp-1Ch] BYREF
cocos2d::CCPoint v11; // [sp+Ch] [bp-14h] BYREF
cocos2d::CCPoint v12; // [sp+14h] [bp-Ch] BYREF
cocos2d::CCPoint::operator-(&v10, &a2->x, a3);
v7 = cosf(a4);
v8 = sinf(a4);
cocos2d::CCPoint::CCPoint(&v11, v7, v8);
cocos2d::CCPoint::CCPoint(
&v12,
(float)(v10.x * v11.x) - (float)(v10.y * v11.y),
(float)(v10.y * v11.x) + (float)(v10.x * v11.y));
cocos2d::CCPoint::operator+(this, a3, &v12.x);
return this;
}