13 #ifndef _CS237_MAT2X2_HXX_
14 #define _CS237_MAT2X2_HXX_
17 #error "c237-mat2x2.hxx should not be included directly"
46 explicit mat2x2 (T
const &x);
79 std::ostream& operator<< (std::ostream& s, mat2x2<T>
const &m);
mat2x2 & operator+=(T const &s)
Definition: cs237-mat2x2.inl:96
T determinant() const
return the determiniant of this matrix
Definition: cs237-mat2x2.inl:161
__detail::mat2x2< float > mat2x2f
Single-precision 2x2 matrices.
Definition: cs237-mat2x2.hxx:84
mat2x2()
create an uninitialized matrix
Definition: cs237-mat2x2.hxx:30
mat2x2 inverse() const
return the inverse of this matrix
Definition: cs237-mat2x2.inl:167
mat2x2d mat2d
Double-precision 2x2 matrices (the same as mat2x2d)
Definition: cs237-mat2x2.hxx:90
__detail::mat2x2< double > mat2x2d
Double-precision 2x2 matrices.
Definition: cs237-mat2x2.hxx:86
mat2x2 & operator=(mat2x2 const &mm)
Definition: cs237-mat2x2.inl:88
template class for 2x3 matrices
Definition: cs237-mat2x3.hxx:26
template class for 3x3 matrices
Definition: cs237-mat3x3.hxx:26
vec2< T > cv[2]
Definition: cs237-mat2x2.hxx:27
mat2x2f mat2f
Single-precision 2x2 matrices (the same as mat2x2f)
Definition: cs237-mat2x2.hxx:88
Definition: cs237-aabb.hxx:18
mat2x2 transpose() const
return the transpose of this matrix
Definition: cs237-mat2x2.inl:153
mat2x2 & operator*=(T const &s)
Definition: cs237-mat2x2.inl:130
vec2< T > & operator[](unsigned int const &i)
return the i'th column vector
Definition: cs237-mat2x2.inl:74
template class for two-element vectors
Definition: cs237-types.hxx:25
mat2x2 & operator-=(T const &s)
Definition: cs237-mat2x2.inl:113
template class for 2x2 matrices
Definition: cs237-mat2x2.hxx:26
template class for 3x2 matrices
Definition: cs237-mat3x2.hxx:26