matrix: remove instance functions translate/scale

functions were untested and poorly specified
This commit is contained in:
Danny Robson 2015-01-13 18:36:03 +11:00
parent ccc21b2ae8
commit 58fb2c942f
2 changed files with 0 additions and 25 deletions

View File

@ -27,28 +27,6 @@
using namespace util; using namespace util;
//-----------------------------------------------------------------------------
template <typename T>
void
matrix<T>::scale (T x, T y, T z) {
CHECK_HARD (is_affine ());
values[0][0] *= x;
values[1][1] *= y;
values[2][2] *= z;
}
//-----------------------------------------------------------------------------
template <typename T>
void
matrix<T>::translate (T x, T y, T z) {
CHECK_HARD (is_affine ());
values[0][3] += x;
values[1][3] += y;
values[2][3] += z;
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
matrix<T> matrix<T>

View File

@ -32,9 +32,6 @@ namespace util {
static const size_t rows = 4; static const size_t rows = 4;
static const size_t cols = 4; static const size_t cols = 4;
void scale (T x, T y, T z);
void translate (T x, T y, T z);
matrix& transpose (void); matrix& transpose (void);
matrix transposed (void) const; matrix transposed (void) const;