[Scummvm-git-logs] scummvm master -> 6f08c6a18653d820c8af681472fbe05b3c018ab1
aquadran
noreply at scummvm.org
Sun Dec 26 17:58:44 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:
6f08c6a186 MATH: Remove no longer needed function
Commit: 6f08c6a18653d820c8af681472fbe05b3c018ab1
https://github.com/scummvm/scummvm/commit/6f08c6a18653d820c8af681472fbe05b3c018ab1
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-26T18:58:39+01:00
Commit Message:
MATH: Remove no longer needed function
Changed paths:
math/matrix4.cpp
math/matrix4.h
diff --git a/math/matrix4.cpp b/math/matrix4.cpp
index c1af95e2bd6..c6a7760faaf 100644
--- a/math/matrix4.cpp
+++ b/math/matrix4.cpp
@@ -19,19 +19,6 @@
*
*/
-/*
- * 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
- *
- * This code was originally made available under the LGPL license (no version specified).
- * Copyright (C)2000, 2001, Brett Porter. All Rights Reserved.
- *
- * This code (and our modifications) is made available here under the GPLv2 (or later).
- *
- */
-
#include "math/matrix4.h"
#include "math/vector4d.h"
#include "math/squarematrix.h"
@@ -128,16 +115,6 @@ void Matrix<4, 4>::invertAffineOrthonormal() {
setPosition(position);
}
-void Matrix<4, 4>::inverseRotate(Vector3d *v) const {
- Vector3d temp;
-
- temp.x() = v->x() * getValue(0, 0) + v->y() * getValue(1, 0) + v->z() * getValue(2, 0);
- temp.y() = v->x() * getValue(0, 1) + v->y() * getValue(1, 1) + v->z() * getValue(2, 1);
- temp.z() = v->x() * getValue(0, 2) + v->y() * getValue(1, 2) + v->z() * getValue(2, 2);
-
- *v = temp;
-}
-
void swap (float &a, float &b);
void Matrix<4, 4>::transpose() {
diff --git a/math/matrix4.h b/math/matrix4.h
index 3055755c8da..6206de3d819 100644
--- a/math/matrix4.h
+++ b/math/matrix4.h
@@ -39,7 +39,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 inverseRotate(Vector3d *v) const;
Vector3d getPosition() const;
void setPosition(const Vector3d &v);
More information about the Scummvm-git-logs
mailing list