Signature
stock bool:xs_plane_nearlyequal(const Float:plane1[], const Float:plane2[]){ if( XS_FLEQ(plane1[0], plane2[0]) && XS_FLEQ(plane1[1], plane2[1]) && XS_FLEQ(plane1[2], plane2[2]) && XS_FLEQ(plane1[3], plane2[3])) return true; return false;}
Description
Checks if two planes are nearly equal.
Notes
-
If you have to check if two planes are exactly equal,
take a look at xs_plane_equal().
Parameters
- plane1 — The first plane to check.
- plane2 — The second plane to check.
Returns
1 if planes are nearly equal, 0 otherwise.