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

Matrix3 Class Reference

#include <Matrix3.h>

Inheritance diagram for Matrix3:

SymmetricMatrix3 List of all members.

Public Member Functions

Public Attributes


Detailed Description

A 3x3 matrix.

Definition at line 12 of file Matrix3.h.


Constructor & Destructor Documentation

Matrix3::Matrix3  )  [inline]
 

Default constructor, sets the matrix to 0.

Definition at line 16 of file Matrix3.h.

Matrix3::~Matrix3  )  [virtual]
 

Definition at line 12 of file Matrix3.cpp.


Member Function Documentation

real Matrix3::getDeterminant  ) 
 

Gets the determinant of the matrix.

Definition at line 19 of file Matrix3.cpp.

References matrix, and real.

Referenced by ArticulatedAgentBase::solveSystem().

real Matrix3::getElement int  i,
int  j
[inline]
 

Gets element (i,j) of the matrix; i,j are numbered starting from 1 (i,j=1,2,3).

Definition at line 56 of file Matrix3.h.

References real.

Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), ArticulatedLink::computeForceQuasistatic(), and ArticulatedAgentQuasistatic::forwardAccelerations().

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

Addition to another matrix.

Definition at line 69 of file Matrix3.h.

References matrix.

real * Matrix3::operator[] int  i  ) 
 

Gets row i; i is numbered starting from 0 (i=0,1,2).

Definition at line 46 of file Matrix3.cpp.

References matrix, and real.

void Matrix3::setColumn int  i,
const Vector3 v
[inline]
 

Sets column i of the matrix to v; i is numbered starting from 1 (i=1,2,3).

Definition at line 48 of file Matrix3.h.

References Vector3::x, Vector3::y, and Vector3::z.

Referenced by ArticulatedAgentBase::solveSystem().

void Matrix3::setElement int  i,
int  j,
real  value
[inline]
 

Sets element (i,j) to value value; i,j are numbered starting from 1 (i,j=1,2,3).

Definition at line 34 of file Matrix3.h.

void Matrix3::setRow int  i,
real  v1,
real  v2,
real  v3
[inline]
 

Sets row i of the matrix to (v1, v2, v3); i is numbered starting from 1 (i=1,2,3).

Definition at line 40 of file Matrix3.h.

Referenced by ArticulatedComponent::computeIStar0().

void Matrix3::setToZero  )  [inline]
 

Sets all matrix elements to 0.

Definition at line 27 of file Matrix3.h.


Member Data Documentation

real Matrix3::matrix[3][3]
 

The placeholder for the data.

Definition at line 24 of file Matrix3.h.

Referenced by getDeterminant(), SymmetricMatrix3::operator+=(), operator+=(), and operator[]().


The documentation for this class was generated from the following files:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005