From 58fb2c942f4a03b5a7618da0322c024ac1311bb6 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 13 Jan 2015 18:36:03 +1100 Subject: [PATCH] matrix: remove instance functions translate/scale functions were untested and poorly specified --- matrix.cpp | 22 ---------------------- matrix.hpp | 3 --- 2 files changed, 25 deletions(-) diff --git a/matrix.cpp b/matrix.cpp index 29da3f62..7d28816c 100644 --- a/matrix.cpp +++ b/matrix.cpp @@ -27,28 +27,6 @@ using namespace util; -//----------------------------------------------------------------------------- -template -void -matrix::scale (T x, T y, T z) { - CHECK_HARD (is_affine ()); - values[0][0] *= x; - values[1][1] *= y; - values[2][2] *= z; -} - - -//----------------------------------------------------------------------------- -template -void -matrix::translate (T x, T y, T z) { - CHECK_HARD (is_affine ()); - values[0][3] += x; - values[1][3] += y; - values[2][3] += z; -} - - //----------------------------------------------------------------------------- template matrix diff --git a/matrix.hpp b/matrix.hpp index 7c5609fd..f7709b4c 100644 --- a/matrix.hpp +++ b/matrix.hpp @@ -32,9 +32,6 @@ namespace util { static const size_t rows = 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 transposed (void) const;