From f6aeef594e9744d5a4431c76b9bd6e54d6fd6a0e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 13 Jan 2015 18:37:09 +1100 Subject: [PATCH] matrix: remove to_{global/local} functions were poorly specified --- matrix.cpp | 25 ------------------------- matrix.hpp | 3 --- 2 files changed, 28 deletions(-) diff --git a/matrix.cpp b/matrix.cpp index 7d28816c..c9edeb1f 100644 --- a/matrix.cpp +++ b/matrix.cpp @@ -364,31 +364,6 @@ matrix::operator== (const matrix &rhs) const { return true; } -//----------------------------------------------------------------------------- -template -util::point<3,T> -matrix::to_local (const util::point<3,T> &p) const { - CHECK_SOFT (is_affine ()); - - return { p.x * values[0][0] + - p.y * values[0][1] + - p.z * values[0][2] + values[0][3], - p.x * values[1][0] + - p.y * values[1][1] + - p.z * values[1][2] + values[1][3], - p.x * values[2][0] + - p.y * values[2][1] + - p.z * values[2][2] + values[2][3] }; -} - - -//----------------------------------------------------------------------------- -template -util::point<3,T> -matrix::to_global (const util::point<3,T> &p) const { - return inverse ().to_local (p); -} - //----------------------------------------------------------------------------- template diff --git a/matrix.hpp b/matrix.hpp index f7709b4c..f718ed62 100644 --- a/matrix.hpp +++ b/matrix.hpp @@ -51,9 +51,6 @@ namespace util { bool operator== (const matrix&) const; - point<3,T> to_local (const point<3,T> &p) const; - point<3,T> to_global (const point<3,T> &p) const; - bool is_affine (void) const; // Perspective matrices