// // cocos2d::ccpLineIntersect from 0x5eb56c to 0x5eb640 (212 bytes) // // 3 xrefs: // > cocos2d::CCProgressTimer::updateRadial @ 0x5d7b1c // > cocos2d::ccpSegmentIntersect @ 0x5eb656 // > cocos2d::ccpIntersectPoint @ 0x5eb6d2 // // 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; // s13 float v7; // s8 float y; // s11 float v9; // s14 float v10; // s12 float v11; // s9 float v12; // s15 float v13; // s14 float v14; // s11 float v15; // s10 float v16; // s13 float v17; // s12 float v18; // s15 float v19; // s14 x = a1->x; if ( a1->x == a2->x && a1->y == a2->y ) return 0; v7 = a3->x; y = a3->y; v9 = a4->y; if ( a3->x == a4->x && y == v9 ) return 0; v10 = a1->y; v11 = a4->x - v7; v12 = a2->y - v10; v13 = v9 - y; v14 = v10 - y; v15 = a2->x - x; v16 = x - v7; v17 = (float)(v13 * v15) - (float)(v11 * v12); v18 = (float)(v15 * v14) - (float)(v12 * v16); *a5 = (float)(v11 * v14) - (float)(v13 * v16); *a6 = v18; v19 = *a5; if ( v17 == 0.0 ) { if ( v19 != 0.0 ) return v18 == 0.0; } else { *a5 = v19 / v17; *a6 = *a6 / v17; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source