- Cal3D 0.9 API Reference -

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

CalMatrix Class Reference

The matrix class. More...

#include <matrix.h>

List of all members.

Public Member Functions

 CalMatrix ()
 Constructs the matrix instance.

 CalMatrix (const CalQuaternion &q)
 Quaternion to Matrix Conversion Constructor.

 CalMatrix (float weight, const CalMatrix &m)
 Matrix Initialization.

 ~CalMatrix ()
 Destructs the matrix instance.

void operator= (const CalQuaternion &q)
 Quaternion to Matrix Conversion.

void operator= (const CalMatrix &m)
 Copying a Matrix.

void operator *= (const CalMatrix &m)
 Matrix Multiplication.

void operator *= (float factor)
 Matrix Scaling.

void blend (float d, const CalMatrix &m)
 Matrix Blending.

float det ()
 Matrix determinant.


Public Attributes

float dxdx
float dxdy
float dxdz
float dydx
float dydy
float dydz
float dzdx
float dzdy
float dzdz


Detailed Description

The matrix class.


Constructor & Destructor Documentation

CalMatrix::CalMatrix  ) 
 

Constructs the matrix instance.

This function is the default constructor of the matrix instance.

CalMatrix::CalMatrix const CalQuaternion q  ) 
 

Quaternion to Matrix Conversion Constructor.

This function converts a quaternion into a rotation matrix.

CalMatrix::CalMatrix float  factor,
const CalMatrix m
 

Matrix Initialization.

This function sets one matrix to a factor times another.

CalMatrix::~CalMatrix  ) 
 

Destructs the matrix instance.

This function is the destructor of the matrix instance.


Member Function Documentation

void CalMatrix::blend float  factor,
const CalMatrix m
 

Matrix Blending.

This function adds a weight times another matrix to the current matrix.

float CalMatrix::det  ) 
 

Matrix determinant.

This function compute the determinant of the matrix.

void CalMatrix::operator *= float  factor  ) 
 

Matrix Scaling.

This function multiplies every element in the matrix by the factor.

void CalMatrix::operator *= const CalMatrix m  ) 
 

Matrix Multiplication.

This function multiplies two matrices.

void CalMatrix::operator= const CalMatrix m  ) 
 

Copying a Matrix.

This function copies one matrix into another.

void CalMatrix::operator= const CalQuaternion q  ) 
 

Quaternion to Matrix Conversion.

This function converts a quaternion into a rotation matrix.


The documentation for this class was generated from the following files:
Generated at Wed Apr 7 16:57:17 2004 by The Cal3D Team with doxygen 1.3.6 © 1997-2001 Dimitri van Heesch