diff options
| author | lepelog <25211966+lepelog@users.noreply.github.com> | 2026-02-01 17:36:32 +0100 |
|---|---|---|
| committer | lepelog <25211966+lepelog@users.noreply.github.com> | 2026-02-01 18:14:41 +0100 |
| commit | 066967c146c2ae3b4ec5cfa871748bb50e826aaa (patch) | |
| tree | bae4b10d3d8b0e50fdb3d8b2955bafa9a471618a /include/egg | |
| parent | ab4b5ef9156320a2d58cacf9e6b0ac2c431070b3 (diff) | |
format
Diffstat (limited to 'include/egg')
| -rw-r--r-- | include/egg/math/eggQuat.h | 8 | ||||
| -rw-r--r-- | include/egg/math/eggVector.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/egg/math/eggQuat.h b/include/egg/math/eggQuat.h index 96808c56..aa33b73b 100644 --- a/include/egg/math/eggQuat.h +++ b/include/egg/math/eggQuat.h @@ -44,8 +44,8 @@ struct Quatf { Vector3f rotateVector(const Vector3f &); Vector3f rotateVectorInv(const Vector3f &); // not in SS void slerpTo(const Quatf &, f32, Quatf &out) const; - void slerpTo2(f32 fparam,const Quatf & param1, Quatf &out ) const { - const Quatf & tmp = param1; + void slerpTo2(f32 fparam, const Quatf ¶m1, Quatf &out) const { + const Quatf &tmp = param1; slerpTo(tmp, fparam, out); } void limitSlerpTo(const Quatf &, f32, f32, Quatf &out) const; @@ -53,13 +53,13 @@ struct Quatf { void makeVectorRotation(const Vector3f &, const Vector3f &); // not sure about the name - f32 dot(const Quatf& other) const { + f32 dot(const Quatf &other) const { f32 ret = v.dot(other.v); ret += w * other.w; return ret; } - void set(const Quatf& other) { + void set(const Quatf &other) { v.set(other.v); w = other.w; } diff --git a/include/egg/math/eggVector.h b/include/egg/math/eggVector.h index 515b3e5a..e69f0649 100644 --- a/include/egg/math/eggVector.h +++ b/include/egg/math/eggVector.h @@ -8,6 +8,7 @@ #include "nw4r/math/math_triangular.h" #include "nw4r/math.h" + #include <cmath> namespace EGG { |
