CIvfMat4d Class Reference

#include <ivfmath/IvfMat4d.h>

Inheritance diagram for CIvfMat4d:

CIvfMathBase List of all members.

Public Member Functions

 CIvfMat4d ()
 CIvfMat4d (CIvfMat4d &M)
 CIvfMat4d (double scalar)
virtual ~CIvfMat4d ()
void one ()
void identity ()
void zero ()
void translate (double tx, double ty, double tz)
void rotateX (double angle)
void rotateY (double angle)
void rotateZ (double angle)
void rotate (double vx, double vy, double vz, double theta)
void scaling (double sx, double sy, double sz)
void print (ostream &out)
void setComponent (int row, int col, double value)
double getComponent (int row, int col)
void setColumn (int col, double v1, double v2, double v3, double v4)
void setRow (int row, double v1, double v2, double v3, double v4)
CIvfMat4d & t ()
CIvfMat4d & inv ()
CIvfMat4d & operator= (CIvfMat4d &A)
CIvfMat4d & operator= (double a)
CIvfMat4d & operator+= (CIvfMat4d &A)
CIvfMat4d & operator-= (CIvfMat4d &A)
CIvfMat4d & operator * (CIvfMat4d &A)
CIvfVec4d & operator * (CIvfVec4d &v)
CIvfMat4d & operator * (double scalar)
CIvfMat4d & operator/ (double scalar)
CIvfMat4d & operator+ (CIvfMat4d &A)

Detailed Description

[4x4] Matrix class

Implements a simple [4x4] matrix.

Author:
Jonas Lindemann
Examples:

math.cpp.

Definition at line 36 of file IvfMat4d.h.


Constructor & Destructor Documentation

CIvfMat4d::CIvfMat4d (   ) 
 

CIvfMat4d constructor

CIvfMat4d::CIvfMat4d (  CIvfMat4d &  M  ) 
 

CIvfMat4d copy constructor

CIvfMat4d::CIvfMat4d (  double  scalar  ) 
 

CIvfMat4d scalar copy constructor

virtual CIvfMat4d::~CIvfMat4d (   )  [virtual]
 

CIvfMat4d destructor


Member Function Documentation

double CIvfMat4d::getComponent (  int  row,
int  col
) 
 

Returns value of matrix element (row, col)

void CIvfMat4d::identity (   ) 
 

Assigns the matrix the identity matrix I

CIvfMat4d& CIvfMat4d::inv (   ) 
 

Returns the inverse of the matrix

Examples:
math.cpp.

void CIvfMat4d::one (   ) 
 

Assigns all elements in matrix to one (=1.0)

CIvfMat4d& CIvfMat4d::operator * (  double  scalar  ) 
 

Matrix/Scalar multiplication operator

CIvfVec4d& CIvfMat4d::operator * (  CIvfVec4d &  v  ) 
 

Matrix/Vector multiplication operator

CIvfMat4d& CIvfMat4d::operator * (  CIvfMat4d &  A  ) 
 

Matrix/Matrix multiplication operator

CIvfMat4d& CIvfMat4d::operator+ (  CIvfMat4d &  A  ) 
 

Matrix/Matrix addition operator

CIvfMat4d& CIvfMat4d::operator+= (  CIvfMat4d &  A  ) 
 

+= operator assignment Matrix += Matrix

CIvfMat4d& CIvfMat4d::operator-= (  CIvfMat4d &  A  ) 
 

-= operator assignment Matrix -= Matrix

CIvfMat4d& CIvfMat4d::operator/ (  double  scalar  ) 
 

Elemental division operator

CIvfMat4d& CIvfMat4d::operator= (  double  a  ) 
 

Assignment operator Matrix = scalar

CIvfMat4d& CIvfMat4d::operator= (  CIvfMat4d &  A  ) 
 

Assignment operator Matrix = Matrix

void CIvfMat4d::print (  ostream &  out  ) 
 

Print matrix to a output stream

Examples:
math.cpp.

void CIvfMat4d::rotate (  double  vx,
double  vy,
double  vz,
double  theta
) 
 

Create a rotation matrix

Creates a rotation matrix that rotates a vector/point

Parameters:
angle around an arbitrary axis.
Examples:
math.cpp.

void CIvfMat4d::rotateX (  double  angle  ) 
 

Create a rotation matrix

Creates a rotation matrix that rotates a vector/point

Parameters:
angle around the x-axis.
Examples:
math.cpp.

void CIvfMat4d::rotateY (  double  angle  ) 
 

Create a rotation matrix

Creates a rotation matrix that rotates a vector/point

Parameters:
angle around the y-axis.
Examples:
math.cpp.

void CIvfMat4d::rotateZ (  double  angle  ) 
 

Create a rotation matrix

Creates a rotation matrix that rotates a vector/point

Parameters:
angle around the z-axis.
Examples:
math.cpp.

void CIvfMat4d::scaling (  double  sx,
double  sy,
double  sz
) 
 

Create a scaling matrix

Creates a scaling matrix that scales a vector/point

void CIvfMat4d::setColumn (  int  col,
double  v1,
double  v2,
double  v3,
double  v4
) 
 

Assign a column the values v1, v2, v3, v4

void CIvfMat4d::setComponent (  int  row,
int  col,
double  value
) 
 

Sets matrix component

Assigns matrix element (row, col) to value.

void CIvfMat4d::setRow (  int  row,
double  v1,
double  v2,
double  v3,
double  v4
) 
 

Assign a row the values v1, v2, v3

Examples:
math.cpp.

CIvfMat4d& CIvfMat4d::t (   ) 
 

Returns a transpose of the matrix

void CIvfMat4d::translate (  double  tx,
double  ty,
double  tz
) 
 

Create a translation matrix

Examples:
math.cpp.

void CIvfMat4d::zero (   ) 
 

Zeros all element sin matrix


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:53 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO