matrix: remove to_{global/local}

functions were poorly specified
This commit is contained in:
Danny Robson 2015-01-13 18:37:09 +11:00
parent 58fb2c942f
commit f6aeef594e
2 changed files with 0 additions and 28 deletions

View File

@ -364,31 +364,6 @@ matrix<T>::operator== (const matrix<T> &rhs) const {
return true;
}
//-----------------------------------------------------------------------------
template <typename T>
util::point<3,T>
matrix<T>::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 <typename T>
util::point<3,T>
matrix<T>::to_global (const util::point<3,T> &p) const {
return inverse ().to_local (p);
}
//-----------------------------------------------------------------------------
template <typename T>

View File

@ -51,9 +51,6 @@ namespace util {
bool operator== (const matrix<T>&) 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