13 #ifndef _CS237_MAT4X4_HXX_
14 #define _CS237_MAT4X4_HXX_
17 #error "c237-mat4x4.hxx should not be included directly"
35 T m00, T m10, T m20, T m30,
36 T m01, T m11, T m21, T m31,
37 T m02, T m12, T m22, T m32,
38 T m03, T m13, T m23, T m33);
42 explicit mat4x4 (T
const &x);
79 std::ostream& operator<< (std::ostream& s, mat4x4<T>
const &m);
__detail::mat4x4< float > mat4x4f
Single-precision 4x4 matrices.
Definition: cs237-mat4x4.hxx:84
mat3x3< T > normalMatrix() const
mat4x4 transpose() const
return the transpose of this matrix
Definition: cs237-mat4x4.inl:173
vec4< T > cv[4]
Definition: cs237-mat4x4.hxx:27
mat4x4d mat4d
Double-precision 4x4 matrices (the same as mat4x4d)
Definition: cs237-mat4x4.hxx:90
mat4x4()
create an uninitialized matrix
Definition: cs237-mat4x4.hxx:30
mat4x4 inverse() const
return the inverse of this matrix
vec4< T > & operator[](unsigned int const &i)
return the i'th column vector
Definition: cs237-mat4x4.inl:66
template class for four-element vectors
Definition: cs237-types.hxx:27
template class for 3x3 matrices
Definition: cs237-mat3x3.hxx:26
mat4x4 & operator=(mat4x4 const &mm)
Definition: cs237-mat4x4.inl:80
mat4x4 & operator-=(T const &s)
Definition: cs237-mat4x4.inl:111
Definition: cs237-aabb.hxx:18
template class for 4x4 matrices
Definition: cs237-mat4x4.hxx:26
mat4x4 & operator+=(T const &s)
Definition: cs237-mat4x4.inl:90
__detail::mat4x4< double > mat4x4d
Double-precision 4x4 matrices.
Definition: cs237-mat4x4.hxx:86
T determinant() const
return the determiniant of this matrix
mat4x4f mat4f
Single-precision 4x4 matrices (the same as mat4x4f)
Definition: cs237-mat4x4.hxx:88
mat4x4 & operator*=(T const &s)
Definition: cs237-mat4x4.inl:132