diff options
author | aap <aap@papnet.eu> | 2020-12-20 11:31:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 11:31:22 +0100 |
commit | 6697ab6b63b8ac8ce1cc96746f157a971973564f (patch) | |
tree | 308cfd8f4e23e713fec89e041d92ecc96ba462c5 /src/math | |
parent | Merge pull request #891 from Nick007J/miami (diff) | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.tar re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.tar.gz re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.tar.bz2 re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.tar.lz re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.tar.xz re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.tar.zst re3-6697ab6b63b8ac8ce1cc96746f157a971973564f.zip |
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/Quaternion.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/math/Quaternion.h b/src/math/Quaternion.h index a5a34626..47c94f7c 100644 --- a/src/math/Quaternion.h +++ b/src/math/Quaternion.h @@ -12,6 +12,11 @@ public: float MagnitudeSqr(void) const { return x*x + y*y + z*z + w*w; } void Normalise(void); void Multiply(const CQuaternion &q1, const CQuaternion &q2); + void Invert(void){ // Conjugate would have been a better name + x = -x; + y = -y; + z = -z; + } const CQuaternion &operator+=(CQuaternion const &right) { x += right.x; |