Math/Math: Remove getTranslate(), getUpVector() and getForwardVector() as they are not used.
This commit is contained in:
parent
532c6dafaf
commit
a6e6b915e6
2 changed files with 0 additions and 23 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue