Pārlūkot izejas kodu

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

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> pirms 10 gadiem
vecāks
revīzija
115bd31b0e
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +4
    -4
      src/math/geometry.cpp

+ 4
- 4
src/math/geometry.cpp Parādīt failu

@@ -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,


Notiek ielāde…
Atcelt
Saglabāt