From ca18ce89544506e8aa6557476076cd21cb368cdb Mon Sep 17 00:00:00 2001 From: elijah-thomas774 Date: Sat, 4 May 2024 13:32:11 -0400 Subject: [PATCH] Fix eggMatrix amd eggMath --- include/egg/math/eggMath.h | 2 +- src/egg/math/eggMatrix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/egg/math/eggMath.h b/include/egg/math/eggMath.h index 243e3575..5381f635 100644 --- a/include/egg/math/eggMath.h +++ b/include/egg/math/eggMath.h @@ -11,7 +11,7 @@ public: static T maxNumber() { // TODO: Generalize to other classes // This is low priority since it will always be a float - return FLT_MAX; + return 3.402823466e+38f; } static T pi() { diff --git a/src/egg/math/eggMatrix.cpp b/src/egg/math/eggMatrix.cpp index a099e01c..794cca7d 100644 --- a/src/egg/math/eggMatrix.cpp +++ b/src/egg/math/eggMatrix.cpp @@ -362,6 +362,6 @@ void Matrix34f::multiplyTo(const Matrix34f &m2, Matrix34f &to) const { void Matrix34f::dump() {} -const Matrix34f Matrix34f::ident(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f); +Matrix34f Matrix34f::ident(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f); } // namespace EGG