#include <Matrix.hh>


Using this class we can implement various functions which define various 3D tranformations, which can by then combined by a single multiplication of their matrices and then applied to vectors -- also by a means of multiplication.
Definition at line 36 of file Matrix.hh.
Public Member Functions | |
| void | Zero () |
| void | LoadIdentity () |
| Double | GetXY (Int x, Int y) const |
| void | SetXY (Int x, Int y, Double D) |
| void | Set (Double(&D)[16]) |
| void | Set (const Matrix &M) |
| void | Multiply (const Matrix &M2) |
| Double | operator! () const |
| Matrix | operator+ (const Matrix &M) const |
| Matrix | operator- (const Matrix &M) const |
| Matrix | operator* (const Matrix &M) const |
| void | operator= (const Matrix &M) |
| Double | operator[] (Int i) const |
Protected Attributes | |
| Double | D [16] |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Matrix &M) |
| void Math::Matrix::Zero | ( | ) |
| void Math::Matrix::LoadIdentity | ( | ) |
Reset to identity matrix.
Definition at line 45 of file Matrix.cc.
References D.
Referenced by Math::Transform::Resize(), Math::Transform::RotateX(), Math::Transform::RotateY(), Math::Transform::RotateZ(), Math::Transform::Transform(), and Math::Transform::Translate().

| Double Math::Matrix::GetXY | ( | Int | x, | |
| Int | y | |||
| ) | const |
| void Math::Matrix::SetXY | ( | Int | x, | |
| Int | y, | |||
| Double | D | |||
| ) |
Set specified matrix element.
| x | column number | |
| y | row number | |
| D | value to set |
Definition at line 56 of file Matrix.cc.
Referenced by Math::Transform::Resize(), Math::Transform::RotateX(), Math::Transform::RotateY(), Math::Transform::RotateZ(), and Math::Transform::Translate().

| void Math::Matrix::Set | ( | Double(&) | D[16] | ) |
Set all elements from an array
Definition at line 76 of file Matrix.cc.
References D.
Referenced by Multiply(), and Math::Transform::Transform().

| void Math::Matrix::Set | ( | const Matrix & | M | ) |
| void Math::Matrix::Multiply | ( | const Matrix & | M2 | ) |
| Double Math::Matrix::operator! | ( | ) | const |
| void Math::Matrix::operator= | ( | const Matrix & | M | ) |
| Double Math::Matrix::operator[] | ( | Int | i | ) | const |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Matrix & | M | |||
| ) | [friend] |
Double Math::Matrix::D[16] [protected] |
Matrix internal representation in row-major order
Definition at line 39 of file Matrix.hh.
Referenced by GetXY(), LoadIdentity(), Multiply(), operator!(), operator*(), operator+(), operator-(), Math::operator<<(), operator=(), operator[](), Set(), and Zero().
1.5.5