Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

GCS::GMatrix44 Class Reference

Provides a 4x4 matrix and various mathematical matrix operations. More...

#include <GMatrix44.h>

Collaboration diagram for GCS::GMatrix44:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GMatrix44 ()
 GMatrix44 (double _m11, double _m12, double _m13, double _m14, double _m21, double _m22, double _m23, double _m24, double _m31, double _m32, double _m33, double _m34, double _m41, double _m42, double _m43, double _m44)
 GMatrix44 (const GMatrix44 &original)
 operator double * ()
GMatrix44loadIdentity ()
GMatrix44 multiply (double scalar)
GMatrix44 multiply (const GMatrix44 &m) const
GVector3 transform (const GVector3 &v) const
GMatrix44 operator+ (const GMatrix44 &m) const
GMatrix44 operator- (const GMatrix44 &m) const
GMatrix44 operator * (const GMatrix44 &m) const
GMatrix44 operator * (const double scalar) const
bool operator== (const GMatrix44 &m) const
bool operator!= (const GMatrix44 &m) const

Detailed Description

Provides a 4x4 matrix and various mathematical matrix operations.

Author:
Raphael Langerhorst

Gerald Degeneve


Constructor & Destructor Documentation

GCS::GMatrix44::GMatrix44  )  [inline]
 

Default constructor initializes the matrix with an identity matrix.

GCS::GMatrix44::GMatrix44 double  _m11,
double  _m12,
double  _m13,
double  _m14,
double  _m21,
double  _m22,
double  _m23,
double  _m24,
double  _m31,
double  _m32,
double  _m33,
double  _m34,
double  _m41,
double  _m42,
double  _m43,
double  _m44
[inline]
 

Constructor initializing with given elements.

GCS::GMatrix44::GMatrix44 const GMatrix44 original  )  [inline]
 

Copy constructor.


Member Function Documentation

GMatrix44 & GCS::GMatrix44::loadIdentity  )  [inline]
 

Converts this matrix into an identity matrix and returns this matrix.

GMatrix44 GCS::GMatrix44::multiply const GMatrix44 m  )  const [inline]
 

Multiplies (transforms) this matrix with given matrix, stores the result in a new matrix and returns it.

GMatrix44 GCS::GMatrix44::multiply double  scalar  )  [inline]
 

Multiplies (scales) this matrix with given scalar, stores the result in a new matrix and returns it.

GMatrix44 GCS::GMatrix44::operator * const double  scalar  )  const [inline]
 

Multiplies (scales) this matrix with given scalar, stores the result in a new matrix and returns it.

GMatrix44 GCS::GMatrix44::operator * const GMatrix44 m  )  const [inline]
 

Multiplies (transforms) this matrix with given matrix, stores the result in a new matrix and returns it.

GCS::GMatrix44::operator double *  )  [inline]
 

Casting Operator.

bool GCS::GMatrix44::operator!= const GMatrix44 m  )  const [inline]
 

Compares a this Matrix with another.

Returns:
true when matrices are different.

GMatrix44 GCS::GMatrix44::operator+ const GMatrix44 m  )  const [inline]
 

Adds a matrix to the given matrix and return a new Matrix.

GMatrix44 GCS::GMatrix44::operator- const GMatrix44 m  )  const [inline]
 

Subtracts a matrix from the given matrix and return a new Matrix.

bool GCS::GMatrix44::operator== const GMatrix44 m  )  const [inline]
 

Compares a this Matrix with another.

Returns:
true when matrices are equal.

GVector3 GCS::GMatrix44::transform const GVector3 v  )  const [inline]
 

Transforms given vector with this matrix and return a new transformed vector.


Member Data Documentation

double GCS::GMatrix44::m[4][4]
 

The field that represents all elements of the matrix interpreted as [rows][columns].

double GCS::GMatrix44::n[16]
 

The field that represents all elements of the matrix interpreted as [row*4+column].


The documentation for this class was generated from the following file:
Generated on Thu Oct 21 21:18:24 2004 for G System by doxygen 1.3.6