Public Member Functions | Public Attributes | Friends
Matrix3 Class Reference

3x3 Matrix class More...

#include <matrix3.h>

List of all members.

Public Member Functions

double determinant ()
 Determinant.
void identity ()
 Set matrix to identity.
Matrix3 invert ()
 Invert Matrix.
 Matrix3 ()
 Constructor Initialising to Identity Matrix.
 Matrix3 (const Matrix3 &m)
 Copy Constructor.
double & operator() (int r, int c)
 Element Access.
Matrix3 operator* (const Matrix3 &m)
 Matrix Multiplication.
Vector3 operator* (const Vector3 &v)
 Matrix Vector multiplication.
Matrix3 operator* (double v)
 Scalar matrix multiplication.
Matrix3operator*= (double v)
 Scalar matrix multiplication and output into itself.
Matrix3operator+= (const Matrix3 &m)
 Matrix Addition and output into itself.
Matrix3operator+= (double v)
 Add scalar to every matrix element and output into itself.
Matrix3operator= (const Matrix3 &m)
 Copy Matrix values from new matrix.
Matrix3operator= (double v)
 Set all Matrix Elements to scalar value.
Vector3operator[] (int idx)
 Row Element Access.
Vector3 operator[] (int idx) const
 Row Element Access.
Matrix2 submatrix (int r, int c)
 Extract 2x2 submatrix.

Public Attributes

Vector3 x [3]
 Storage for 3 x 3 Matrix.

Friends

std::ostream & operator<< (std::ostream &os, const Matrix3 &m)
 Print out matrix.

Detailed Description

3x3 Matrix class

Definition at line 393 of file matrix3.h.


Constructor & Destructor Documentation

Matrix3::Matrix3 ( ) [inline]

Constructor Initialising to Identity Matrix.

Definition at line 399 of file matrix3.h.

Matrix3::Matrix3 ( const Matrix3 m) [inline]

Copy Constructor.

Parameters:
m3x3 Matrix

Definition at line 406 of file matrix3.h.


Member Function Documentation

double Matrix3::determinant ( ) [inline]

Determinant.

Returns:
Determinant

Definition at line 454 of file matrix3.h.

void Matrix3::identity ( ) [inline]

Set matrix to identity.

Definition at line 421 of file matrix3.h.

Matrix3 Matrix3::invert ( ) [inline]

Invert Matrix.

Returns:
Inverted Matrix

Definition at line 462 of file matrix3.h.

double& Matrix3::operator() ( int  r,
int  c 
) [inline]

Element Access.

Parameters:
rrow index
ccolumn index
Returns:
element value

Definition at line 448 of file matrix3.h.

Matrix3 Matrix3::operator* ( const Matrix3 m) [inline]

Matrix Multiplication.

Parameters:
mMatrix to be multiplied with
Returns:
Result Matrix

Definition at line 486 of file matrix3.h.

Vector3 Matrix3::operator* ( const Vector3 v) [inline]

Matrix Vector multiplication.

Parameters:
vVector to be multiplied with
Returns:
Result Vector

Definition at line 497 of file matrix3.h.

Matrix3 Matrix3::operator* ( double  v) [inline]

Scalar matrix multiplication.

Parameters:
vScalar value to be multiplied with
Returns:
Result Matrix

Definition at line 507 of file matrix3.h.

Matrix3& Matrix3::operator*= ( double  v) [inline]

Scalar matrix multiplication and output into itself.

Parameters:
vScalar value to be multiplied with
Returns:
Result Matrix

Definition at line 526 of file matrix3.h.

Matrix3& Matrix3::operator+= ( const Matrix3 m) [inline]

Matrix Addition and output into itself.

Parameters:
mMatrix to be added
Returns:
Result Matrix

Definition at line 535 of file matrix3.h.

Matrix3& Matrix3::operator+= ( double  v) [inline]

Add scalar to every matrix element and output into itself.

Parameters:
vScalar value to be added
Returns:
Result Matrix

Definition at line 544 of file matrix3.h.

Matrix3& Matrix3::operator= ( const Matrix3 m) [inline]

Copy Matrix values from new matrix.

Parameters:
m3x3 Matrix

Definition at line 414 of file matrix3.h.

Matrix3& Matrix3::operator= ( double  v) [inline]

Set all Matrix Elements to scalar value.

Parameters:
vScalar value to be set to
Returns:
Result Matrix

Definition at line 517 of file matrix3.h.

Vector3& Matrix3::operator[] ( int  idx) [inline]

Row Element Access.

Parameters:
idxrow index
Returns:
row as three dimensional vector

Definition at line 431 of file matrix3.h.

Vector3 Matrix3::operator[] ( int  idx) const [inline]

Row Element Access.

Parameters:
idxrow index
Returns:
row as three dimensional vector

Definition at line 439 of file matrix3.h.

Matrix2 Matrix3::submatrix ( int  r,
int  c 
) [inline]

Extract 2x2 submatrix.

Parameters:
rrow index
ccolumn index
Returns:
2x2 matrix

Definition at line 555 of file matrix3.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Matrix3 m 
) [friend]

Print out matrix.

Parameters:
osoutput stream
mMatrix to be printed
Returns:
Matrix printed to output stream

Definition at line 570 of file matrix3.h.


Member Data Documentation

Storage for 3 x 3 Matrix.

Definition at line 396 of file matrix3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Wed Jan 23 2013 15:46:44