matrix: remove instance functions translate/scale
functions were untested and poorly specified
This commit is contained in:
parent
ccc21b2ae8
commit
58fb2c942f
22
matrix.cpp
22
matrix.cpp
@ -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>
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user