diff options
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 { |
