Browse Source

removed unneeded check for macro defined variable EPSILON

pull/5097/head
user 2 months ago
parent
commit
27473b5c0f
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      src/raymath.h

+ 0
- 4
src/raymath.h View File

@ -1197,10 +1197,6 @@ RMAPI Vector3 Vector3ClampValue(Vector3 v, float min, float max)
// Check whether two given vectors are almost equal
RMAPI int Vector3Equals(Vector3 p, Vector3 q)
{
#if !defined(EPSILON)
#define EPSILON 0.000001f
#endif
int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
((fabsf(p.y - q.y)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.y), fabsf(q.y))))) &&
((fabsf(p.z - q.z)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.z), fabsf(q.z)))));

Loading…
Cancel
Save