Procházet zdrojové kódy

geom tweaks

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> před 11 roky
rodič
revize
c753233291
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. +2
    -2
      src/lol/math/geometry.h
  2. +0
    -2
      src/math/geometry.cpp

+ 2
- 2
src/lol/math/geometry.h Zobrazit soubor

@@ -155,8 +155,8 @@ class TestEpsilon
private:
static float g_test_epsilon;
public:
static inline float Get();
static inline void Set(float epsilon=.0001f);
static inline float Get() { return g_test_epsilon; }
static inline void Set(float epsilon=.0001f) { g_test_epsilon = epsilon; }
};

static inline bool TestAABBVsAABB(box2 const &b1, box2 const &b2)


+ 0
- 2
src/math/geometry.cpp Zobrazit soubor

@@ -26,8 +26,6 @@ namespace lol
{
//Test epsilon stuff
float TestEpsilon::g_test_epsilon = .0001f;
float TestEpsilon::Get() { return g_test_epsilon; }
void TestEpsilon::Set(float epsilon) { g_test_epsilon = epsilon; }

//Projects Point on Plane : Normal must be given normalized. returns point on plane.
vec3 ProjectPointOnPlane(vec3 const &proj_point, vec3 const &plane_point, vec3 const &plane_normal)


Načítá se…
Zrušit
Uložit