Matrix3 Class Reference
[Maths - 3D Vectors]

A class representing a 3x3 matrix. More...

#include <vector3.h>

List of all members.

Public Member Functions

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

Public Attributes

Vector3 Row1
Vector3 Row2
Vector3 Row3

Detailed Description

A class representing a 3x3 matrix.

Definition at line 420 of file vector3.h.


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

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.

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.

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

The elements for row 1 of the matrix

Definition at line 465 of file vector3.h.

The elements for row 2 of the matrix

Definition at line 466 of file vector3.h.

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.6.1