// // cocos2d::ccpLineIntersect from 0x180094010 to 0x180094136 (294 bytes) // // 5 xrefs: // > cocos2d::CCProgressTimer::updateRadial @ 0x18005ed3c // > cocos2d::ccpIntersectPoint @ 0x180093f2d // > cocos2d::ccpSegmentIntersect @ 0x180094198 // > @ 0x1801438a8 // > @ 0x1801b6684 // // 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 // char __fastcall cocos2d::ccpLineIntersect( cocos2d *this, const struct cocos2d::CCPoint *a2, const struct cocos2d::CCPoint *a3, const struct cocos2d::CCPoint *a4, const struct cocos2d::CCPoint *a5, float *a6) { float v6; // xmm6_4 float x; // xmm1_4 float v8; // xmm5_4 float v9; // xmm7_4 float v10; // xmm8_4 float v11; // xmm2_4 float v12; // xmm6_4 float v13; // xmm3_4 float v14; // xmm5_4 float v15; // xmm1_4 float v16; // xmm4_4 float v17; // xmm5_4 float v18; // xmm0_4 v6 = *(float *)this; if ( *(float *)this == a2->x && *((float *)this + 1) == a2->y ) return 0; x = a3->x; if ( a3->x == a4->x && a3->y == a4->y ) return 0; v8 = *((float *)this + 1); v9 = a4->x - x; v10 = a2->x - v6; v11 = a4->y - a3->y; v12 = v6 - x; v13 = a2->y - v8; v14 = v8 - a3->y; v15 = v14 * v9; v16 = (float)(v11 * v10) - (float)(v9 * v13); v17 = (float)(v14 * v10) - (float)(v12 * v13); a5->x = v15 - (float)(v12 * v11); *a6 = v17; v18 = a5->x; if ( v16 == 0.0 ) { if ( v18 != 0.0 && v17 != 0.0 ) return 0; } else { a5->x = v18 / v16; *a6 = *a6 / v16; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source