1
0
Fork 0

Math/Math: Remove getTranslate(), getUpVector() and getForwardVector() as they are not used.

This commit is contained in:
Henrik Hautakoski 2020-02-12 19:54:52 +01:00
parent 532c6dafaf
commit a6e6b915e6
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 0 additions and 23 deletions

View file

@ -41,13 +41,6 @@ namespace sp { namespace math
// Create a 2D scale matrix.
Matrix4f scale(float x, float y);
// Get translation part of a matrix.
Vector3f getTranslate(const Matrix4f matrix);
Vector3f getUpVector(const Matrix4f matrix);
Vector3f getForwardVector(const Matrix4f matrix);
} } // namespace sp
#endif /* SPECTRE_MATH_MATH_H */

View file

@ -79,20 +79,4 @@ namespace sp { namespace math
0.0f, 0.0f, 0.0f, 1.0f);
}
Vector3f getTranslate(const Matrix4f matrix) {
return Vector3f(matrix.e[12], matrix.e[13], matrix.e[14]);
}
Vector3f getUpVector(const Matrix4f matrix) {
return Vector3f(matrix.e[4], matrix.e[5], matrix.e[6]);
}
Vector3f getForwardVector(const Matrix4f matrix) {
return Vector3f(matrix.e[8], matrix.e[9], matrix.e[10]);
}
} } // namespace sp::math