Browse Source

Learn your fucking operators, you dumbass !!!!!

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 10 years ago
parent
commit
115bd31b0e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/math/geometry.cpp

+ 4
- 4
src/math/geometry.cpp View File

@@ -39,10 +39,10 @@ namespace lol
bool TestEpsilon::operator>=(float value)const { return (value >= Minus()); }
bool operator==(float value, const TestEpsilon& epsilon) { return epsilon == value; }
bool operator!=(float value, const TestEpsilon& epsilon) { return epsilon != value; }
bool operator<(float value, const TestEpsilon& epsilon) { return epsilon < value; }
bool operator<=(float value, const TestEpsilon& epsilon) { return epsilon <= value; }
bool operator>(float value, const TestEpsilon& epsilon) { return epsilon > value; }
bool operator>=(float value, const TestEpsilon& epsilon) { return epsilon >= value; }
bool operator<(float value, const TestEpsilon& epsilon) { return epsilon > value; }
bool operator<=(float value, const TestEpsilon& epsilon) { return epsilon >= value; }
bool operator>(float value, const TestEpsilon& epsilon) { return epsilon < value; }
bool operator>=(float value, const TestEpsilon& epsilon) { return epsilon <= value; }

// Line/triangle : sets isec_p as the intersection point & return true if ok.
bool TestRayVsTriangle(vec3 const &ray_point, vec3 const &ray_dir,


Loading…
Cancel
Save