![]() |
CMSC23700 Common Code Library
Support code for CS23700 programming projects
|
template class for 4x4 matrices More...
#include <cs237-mat4x4.hxx>
Public Member Functions | |
mat4x4 () | |
create an uninitialized matrix More... | |
mat4x4 (mat4x4 const &m) | |
copy constructor More... | |
mat4x4 (T m00, T m10, T m20, T m30, T m01, T m11, T m21, T m31, T m02, T m12, T m22, T m32, T m03, T m13, T m23, T m33) | |
construct a matrix from individual elements given in column-major order More... | |
mat4x4 (vec4< T > const &c0, vec4< T > const &c1, vec4< T > const &c2, vec4< T > const &c3) | |
construct a matrix from column vectors More... | |
mat4x4 (T const &x) | |
construct a diagonal matrix with diagonal elements initialized to x More... | |
mat4x4 & | operator= (mat4x4 const &mm) |
mat4x4 & | operator+= (T const &s) |
mat4x4 & | operator+= (mat4x4 const &mm) |
mat4x4 & | operator-= (T const &s) |
mat4x4 & | operator-= (mat4x4 const &mm) |
mat4x4 & | operator*= (T const &s) |
mat4x4 & | operator*= (mat4x4 const &mm) |
mat4x4 | inverse () const |
return the inverse of this matrix More... | |
mat4x4 | transpose () const |
return the transpose of this matrix More... | |
T | determinant () const |
return the determiniant of this matrix More... | |
mat3x3< T > | normalMatrix () const |
vec4< T > & | operator[] (unsigned int const &i) |
return the i'th column vector More... | |
vec4< T > const & | operator[] (unsigned int const &i) const |
Public Attributes | |
vec4< T > | cv [4] |
template class for 4x4 matrices
|
inline |
create an uninitialized matrix
|
inline |
copy constructor
|
inlineexplicit |
construct a matrix from individual elements given in column-major order
|
inlineexplicit |
construct a matrix from column vectors
|
inlineexplicit |
construct a diagonal matrix with diagonal elements initialized to x
T cs237::__detail::mat4x4< T >::determinant | ( | ) | const |
return the determiniant of this matrix
mat4x4 cs237::__detail::mat4x4< T >::inverse | ( | ) | const |
return the inverse of this matrix
mat3x3<T> cs237::__detail::mat4x4< T >::normalMatrix | ( | ) | const |
extract a 3x3 "normal" transform matrix from a 4x4 affine transform matrix, which is the inverse transpose of the upper-left 3x3 submatrix.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return the i'th column vector
return the i'th column vector of the matrix
|
inline |
|
inline |
return the transpose of this matrix
vec4<T> cs237::__detail::mat4x4< T >::cv[4] |