diff options
Diffstat (limited to 'src/math/geometry.h')
-rw-r--r-- | src/math/geometry.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/geometry.h b/src/math/geometry.h index 61d1868..3a31ad6 100644 --- a/src/math/geometry.h +++ b/src/math/geometry.h @@ -45,9 +45,9 @@ inline float MidPoint(const Math::Point &a, const Math::Point &b, float px) if (IsEqual(a.x, b.x)) { if (a.y < b.y) - return HUGE; + return Math::HUGE_NUM; else - return -HUGE; + return -Math::HUGE_NUM; } return (b.y-a.y) * (px-a.x) / (b.x-a.x) + a.y; } |