diff options
| author | elijah-thomas774 <elijahthomas774@gmail.com> | 2023-10-08 14:12:29 -0400 |
|---|---|---|
| committer | elijah-thomas774 <elijahthomas774@gmail.com> | 2023-10-08 14:12:29 -0400 |
| commit | fa36edcffdde37c7e9cab881d5c825747fc006f2 (patch) | |
| tree | 1539d68b7f0311c4c492b622b081c76020ed6112 /include/egg | |
| parent | f422b6401769235b2985e7862c35ee271e4dbe7a (diff) | |
Filled out FileManager (NonMatching)
Diffstat (limited to 'include/egg')
| -rw-r--r-- | include/egg/core/eggController.h | 1 | ||||
| -rw-r--r-- | include/egg/math/eggVector.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/egg/core/eggController.h b/include/egg/core/eggController.h index 926c1a37..adb42039 100644 --- a/include/egg/core/eggController.h +++ b/include/egg/core/eggController.h @@ -3,6 +3,7 @@ #include "types.h" #include "egg/math/eggMatrix.h" +#include "egg/math/eggMath.h" #include "egg/math/eggVector.h" #include "egg/prim/eggBitFlag.h" #include "egg/prim/eggBuffer.h" diff --git a/include/egg/math/eggVector.h b/include/egg/math/eggVector.h index 06f57b14..bd14d0a6 100644 --- a/include/egg/math/eggVector.h +++ b/include/egg/math/eggVector.h @@ -13,7 +13,7 @@ public: Vector3f(const Vector3f& other) {x = other.x, y = other.y, z = other.z;} // may need change f32 squaredLength() { return x*x + y*y + z*z; } - f32 length() { return Math<f32>::frsqrt(squaredLength()); } + f32 length() { return Math<f32>::sqrt(squaredLength()); } /* 8049bcc0 */ void normalise(); /* 8049bd50 */ void setLength(Vector3f& src, f32 length); /* 8049be10 */ void setLength(f32 length); |
