MATH: Inverse translate function is no longer needed
This commit is contained in:
parent
4d62b275e0
commit
888049db2d
2 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue