MATH: Inverse translate function is no longer needed

This commit is contained in:
Paweł Kołodziejski 2021-12-26 17:26:57 +01:00
parent 4d62b275e0
commit 888049db2d
No known key found for this signature in database
GPG key ID: 0BDADC9E74440FF7
2 changed files with 1 additions and 8 deletions

View file

@ -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;