[Scummvm-git-logs] scummvm master -> 888049db2dd54e61271a36948178a4283a2519ee
aquadran
noreply at scummvm.org
Sun Dec 26 16:27:04 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
888049db2d MATH: Inverse translate function is no longer needed
Commit: 888049db2dd54e61271a36948178a4283a2519ee
https://github.com/scummvm/scummvm/commit/888049db2dd54e61271a36948178a4283a2519ee
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-26T17:26:57+01:00
Commit Message:
MATH: Inverse translate function is no longer needed
Changed paths:
math/matrix4.cpp
math/matrix4.h
diff --git a/math/matrix4.cpp b/math/matrix4.cpp
index a1efde43c7..d126287a65 100644
--- a/math/matrix4.cpp
+++ b/math/matrix4.cpp
@@ -21,7 +21,7 @@
*/
/*
- * The following functions: inverseTranslate, inverseRotate, transpose
+ * The following function: inverseRotate
* are adapted from Portalib3d, which is no longer available on the net.
* But is available through archive.org, for reference:
* http://web.archive.org/web/20050205215104/http://rsn.gamedev.net/pl3d/changelog.html
@@ -129,12 +129,6 @@ void Matrix<4, 4>::invertAffineOrthonormal() {
setPosition(position);
}
-void Matrix<4, 4>::inverseTranslate(Vector3d *v) const {
- v->x() = v->x() - getValue(0, 3);
- v->y() = v->y() - getValue(1, 3);
- v->z() = v->z() - getValue(2, 3);
-}
-
void Matrix<4, 4>::inverseRotate(Vector3d *v) const {
Vector3d temp;
diff --git a/math/matrix4.h b/math/matrix4.h
index 91054ce589..c3ae03e894 100644
--- a/math/matrix4.h
+++ b/math/matrix4.h
@@ -40,7 +40,6 @@ public:
Matrix(const Angle &first, const Angle &second, const Angle &third, EulerOrder order) { buildFromEuler(first, second, third, order); }
void transform(Vector3d *v, bool translate) const;
- void inverseTranslate(Vector3d *v) const;
void inverseRotate(Vector3d *v) const;
Vector3d getPosition() const;
More information about the Scummvm-git-logs
mailing list