Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Matrix3 Class Reference
[Maths - 3D Vectors]

#include <vector3.h>

List of all members.


Detailed Description

A class representing a 3x3 matrix.

Definition at line 420 of file vector3.h.

Public Member Functions

 Matrix3 ()
 Matrix3 (const Vector3 row1, const Vector3 row2, const Vector3 row3)
IMPORT Vector3 operator * (const Vector3 &vector) const
IMPORT Matrix3 Transposition () const
IMPORT void Transform (Vector3 *outVectors, unsigned vectorCount, const Vector3 *inVectors)

Public Attributes

Vector3 Row1
Vector3 Row2
Vector3 Row3


Constructor & Destructor Documentation

Matrix3::Matrix3  ) 
 

Constructor which doesn't initialise the matrix object

Definition at line 426 of file vector3.h.

Matrix3::Matrix3 const Vector3  row1,
const Vector3  row2,
const Vector3  row3
 

Constructor which initialises the matrix object using three 3vectors

Parameters:
row1 Values for first row in matrix.
row2 Values for second row in matrix.
row3 Values for third row in matrix.

Definition at line 436 of file vector3.h.


Member Function Documentation

EXPORT Vector3 Matrix3::operator * const Vector3 vector  )  const
 

Multiply this matrix by a 3vector.

Parameters:
vector The vector to multiply by. This is treated as a column vector.
Returns:
Result of mutiplying this matrix by vector

Definition at line 410 of file vector3.cpp.

EXPORT Matrix3 Matrix3::Transposition  )  const
 

Transpose a matrix. (Exchange rows with columns.)

Returns:
The transposition of this matrix.

Definition at line 424 of file vector3.cpp.

EXPORT void Matrix3::Transform Vector3 outVectors,
unsigned  vectorCount,
const Vector3 inVectors
 

Tranform an array of vectors by multiplying each against this matrix, acording to the operator*() function.

Parameters:
outVectors Pointer to array where transformed vectors will be written to.
vectorCount Number of vectors in array.
inVectors Pointer to array vectors to be transformed.

Definition at line 432 of file vector3.cpp.


Member Data Documentation

Vector3 Matrix3::Row1
 

The elements for row 1 of the matrix

Definition at line 465 of file vector3.h.

Vector3 Matrix3::Row2
 

The elements for row 2 of the matrix

Definition at line 466 of file vector3.h.

Vector3 Matrix3::Row3
 

The elements for row 3 of the matrix

Definition at line 467 of file vector3.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.4.4