AMX Mod X API Documentation

Signature
stock bool:xs_vec_nearlyequal(const Float:vec1[], const Float:vec2[]){ return XS_FLEQ(vec1[0], vec2[0]) && XS_FLEQ(vec1[1], vec2[1]) && XS_FLEQ(vec1[2], vec2[2]);}
Description

Checks if two vectors are nearly equal.

Notes
  • If you need to check if two vectors are exactly equal,

    take a look at xs_vec_equal().

Parameters
  • vec1 The first input vector to check.
  • vec2 The second input vector to check.
Returns

1 if vectors are equal, 0 otherwise.

Назад
Верх