ColMatrix2x2< T > Class Template Reference
#include <TAPsColMatrix2x2.hpp>
List of all members.
|
Public Member Functions |
| | ColMatrix2x2 (T const af[4]) |
| | ColMatrix2x2 (T, T, T, T) |
| | ColMatrix2x2 (T) |
| | ColMatrix2x2 (ColMatrix2x2< T > const &M) |
| | ColMatrix2x2 () |
| T | GetDeterminant () const |
| ColMatrix2x2< T > | GetInverse () const |
| ColMatrix2x2< T > | GetTranspose () const |
| ColMatrix2x2< T > & | Inversed () |
| void | MakeDiagonal (T const af[4]) |
| void | MakeDiagonal (T d) |
| void | MakeIdentity () |
| void | MakeZero () |
| void | MultLeft (ColMatrix2x2< T > const &M) |
| void | MultRight (ColMatrix2x2< T > const &M) |
| | operator const T * () const |
| | operator T * () |
| T const & | operator() (int r, int c) const |
| T & | operator() (int r, int c) |
| ColMatrix2x2< T > | operator* (T s) const |
| ColMatrix2x2< T > | operator* (ColMatrix2x2< T > const &M) const |
| ColMatrix2x2< T > & | operator*= (T s) |
| ColMatrix2x2< T > & | operator*= (ColMatrix2x2< T > const &M) |
| ColMatrix2x2< T > | operator+ (ColMatrix2x2< T > const &M) const |
| ColMatrix2x2< T > & | operator+= (ColMatrix2x2< T > const &M) |
| ColMatrix2x2< T > | operator- (ColMatrix2x2< T > const &M) const |
| ColMatrix2x2< T > | operator- () |
| ColMatrix2x2< T > & | operator-= (ColMatrix2x2< T > const &M) |
| ColMatrix2x2< T > | operator/ (T s) const |
| ColMatrix2x2< T > & | operator/= (T s) |
| ColMatrix2x2< T > & | operator= (ColMatrix2x2< T > const &M) |
| T const & | operator[] (int i) const |
| T & | operator[] (int i) |
| void | SetAllElements (T const af[4]) |
| void | SetAllElements (T, T, T, T) |
| void | SetAllElements (T) |
| ColMatrix2x2< T > & | Transposed () |
| | ~ColMatrix2x2 () |
Private Attributes |
| T | e [4] |
Friends |
| ColMatrix2x2< T > | operator* (T s, ColMatrix2x2< T > const &M) |
| std::ostream & | operator<< (std::ostream &output, ColMatrix2x2< T > const &M) |
Detailed Description
template<typename T>
class ColMatrix2x2< T >
Definition at line 18 of file TAPsColMatrix2x2.hpp.
Constructor & Destructor Documentation
Member Function Documentation
Definition at line 153 of file TAPsColMatrix2x2.cpp.
00154 {
00155 *this = (*this).GetInverse();
00156 return *this;
00157 }
template<typename T>
| T const & ColMatrix2x2< T >::operator() |
( |
int |
r, |
|
|
int |
c | |
|
) |
| | const [inline] |
Definition at line 227 of file TAPsColMatrix2x2.cpp.
00228 {
00229 e[0] *= s; e[1] *= s; e[2] *= s; e[3] *= s;
00230 return *this;
00231 }
Definition at line 220 of file TAPsColMatrix2x2.cpp.
00221 {
00222 *this = (*this) * M;
00223 return *this;
00224 }
Definition at line 206 of file TAPsColMatrix2x2.cpp.
00207 {
00208 e[0] += M.e[0]; e[1] += M.e[1]; e[2] += M.e[2]; e[3] += M.e[3];
00209 return *this;
00210 }
Definition at line 213 of file TAPsColMatrix2x2.cpp.
00214 {
00215 e[0] -= M.e[0]; e[1] -= M.e[1]; e[2] -= M.e[2]; e[3] -= M.e[3];
00216 return *this;
00217 }
Definition at line 234 of file TAPsColMatrix2x2.cpp.
00235 {
00236 e[0] /= s; e[1] /= s; e[2] /= s; e[3] /= s;
00237 return *this;
00238 }
Definition at line 184 of file TAPsColMatrix2x2.cpp.
00185 {
00186 if ( this != &M )
00187 {
00188 e[0] = M.e[0]; e[1] = M.e[1]; e[2] = M.e[2]; e[3] = M.e[3];
00189 }
00190 return *this;
00191 }
template<typename T>
| T const & ColMatrix2x2< T >::operator[] |
( |
int |
i |
) |
const [inline] |
template<typename T>
| void ColMatrix2x2< T >::SetAllElements |
( |
T const |
af[4] |
) |
[inline] |
template<typename T>
| void ColMatrix2x2< T >::SetAllElements |
( |
T |
e00, |
|
|
T |
e01, |
|
|
T |
e10, |
|
|
T |
e11 | |
|
) |
| | [inline] |
Definition at line 138 of file TAPsColMatrix2x2.cpp.
00139 {
00140 T temp;
00141 temp = e[1]; e[1] = e[2]; e[2] = temp;
00142 return *this;
00143 }
Friends And Related Function Documentation
template<typename T>
| std::ostream& operator<< |
( |
std::ostream & |
output, |
|
|
ColMatrix2x2< T > const & |
M | |
|
) |
| | [friend] |
Definition at line 27 of file TAPsColMatrix2x2.hpp.
00028 {
00029 int width = 14;
00030
00031 output << "ColMatrix2x2<" << typeid(T).name() << "> =\n"
00032 << "| " << std::setw(width) << M.e[0]
00033 << std::setw(width) << M.e[2] << " |\n"
00034 << "| " << std::setw(width) << M.e[1]
00035 << std::setw(width) << M.e[3] << " |\n";
00036
00037 return output;
00038 }
Member Data Documentation
The documentation for this class was generated from the following files: