// // cocos2d::ccpLineIntersect from 0xb1f26c to 0xb1f34c (224 bytes) // // 5 xrefs: // > cocos2d::CCProgressTimer::updateRadial @ 0xaf8d4c // > cocos2d::CCProgressTimer::updateRadial @ 0xaf906c // > cocos2d::ccpSegmentIntersect @ 0xb1f370 // > cocos2d::ccpIntersectPoint @ 0xb1f410 // > @ 0x7f560 // // 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 // bool cocos2d::ccpLineIntersect( const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2, const cocos2d::CCPoint *a3, const cocos2d::CCPoint *a4, float *a5, float *a6) { float x; // s7 bool v7; // w6 float v8; // s3 float v9; // s0 float y; // s5 float v11; // s6 float v12; // s2 float v13; // s4 float v14; // s0 float v15; // s3 float v16; // s1 float v17; // s5 float v18; // s6 float v19; // s0 float v20; // s1 x = a1->x; if ( a1->x == a2->x ) { v7 = 0; if ( a1->y == a2->y ) return v7; } v8 = a3->x; if ( a3->x == a4->x ) { y = a3->y; v7 = 0; v9 = a4->y; if ( y == v9 ) return v7; } else { v9 = a4->y; y = a3->y; } v11 = a1->y; v12 = a4->x - v8; v13 = a2->y - v11; v14 = v9 - y; v15 = x - v8; v16 = a2->x - x; v17 = v11 - y; v18 = v14 * v15; v19 = -(float)((float)(v12 * v13) - (float)(v14 * v16)); v20 = -(float)((float)(v13 * v15) - (float)(v16 * v17)); *a5 = -(float)(v18 - (float)(v12 * v17)); *a6 = v20; if ( v19 == 0.0 ) return v20 == 0.0 || *a5 == 0.0; *a5 = *a5 / v19; *a6 = *a6 / v19; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source