$search

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 (const Matrix3 &m)
 Copy Constructor.
 Matrix3 ()
 Constructor Initialising to Identity Matrix.
double & operator() (int r, int c)
 Element Access.
Matrix3 operator* (double v)
 Scalar matrix multiplication.
Vector3 operator* (const Vector3 &v)
 Matrix Vector multiplication.
Matrix3 operator* (const Matrix3 &m)
 Matrix Multiplication.
Matrix3operator*= (double v)
 Scalar matrix multiplication and output into itself.
Matrix3operator+= (double v)
 Add scalar to every matrix element and output into itself.
Matrix3operator+= (const Matrix3 &m)
 Matrix Addition and output into itself.
Matrix3operator= (double v)
 Set all Matrix Elements to scalar value.
Matrix3operator= (const Matrix3 &m)
 Copy Matrix values from new matrix.
Vector3 operator[] (int idx) const
 Row Element Access.
Vector3operator[] (int idx)
 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:
m 3x3 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:
r row index
c column index
Returns:
element value

Definition at line 448 of file matrix3.h.

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

Scalar matrix multiplication.

Parameters:
v Scalar value to be multiplied with
Returns:
Result Matrix

Definition at line 507 of file matrix3.h.

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

Matrix Vector multiplication.

Parameters:
v Vector to be multiplied with
Returns:
Result Vector

Definition at line 497 of file matrix3.h.

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

Matrix Multiplication.

Parameters:
m Matrix to be multiplied with
Returns:
Result Matrix

Definition at line 486 of file matrix3.h.

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

Scalar matrix multiplication and output into itself.

Parameters:
v Scalar value to be multiplied with
Returns:
Result Matrix

Definition at line 526 of file matrix3.h.

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

Add scalar to every matrix element and output into itself.

Parameters:
v Scalar value to be added
Returns:
Result Matrix

Definition at line 544 of file matrix3.h.

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

Matrix Addition and output into itself.

Parameters:
m Matrix to be added
Returns:
Result Matrix

Definition at line 535 of file matrix3.h.

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

Set all Matrix Elements to scalar value.

Parameters:
v Scalar value to be set to
Returns:
Result Matrix

Definition at line 517 of file matrix3.h.

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

Copy Matrix values from new matrix.

Parameters:
m 3x3 Matrix

Definition at line 414 of file matrix3.h.

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

Row Element Access.

Parameters:
idx row index
Returns:
row as three dimensional vector

Definition at line 439 of file matrix3.h.

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

Row Element Access.

Parameters:
idx row index
Returns:
row as three dimensional vector

Definition at line 431 of file matrix3.h.

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

Extract 2x2 submatrix.

Parameters:
r row index
c column 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:
os output stream
m Matrix 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 Tue Mar 5 14:01:57 2013