Public Member Functions | Protected Attributes | Friends
Matrix3 Class Reference

A 3x3 matrix class. More...

#include <Matrix3.hh>

List of all members.

Public Member Functions

 Matrix3 ()
 Constructor.
 Matrix3 (const Matrix3 &_m)
 Copy constructor.
 Matrix3 (double _v00, double _v01, double _v02, double _v10, double _v11, double _v12, double _v20, double _v21, double _v22)
 Constructor.
virtual ~Matrix3 ()
 Desctructor.
void SetFromAxes (const Vector3 &_xAxis, const Vector3 &_yAxis, const Vector3 &_zAxis)
 Set the matrix from three axis.
void SetFromAxis (const Vector3 &_axis, double _angle)
 Set the matrix from an axis and angle.
void SetCol (unsigned int _c, const Vector3 &_v)
 Set a column.

Protected Attributes

double m [3][3]
 the 3x3 matrix

Friends

std::ostream & operator<< (std::ostream &_out, const gazebo::math::Matrix3 &_m)
 Output operator.

Detailed Description

A 3x3 matrix class.


Constructor & Destructor Documentation

Matrix3 ( const Matrix3 _m)

Copy constructor.

Parameters:
_mMatrix to copy
Matrix3 ( double  _v00,
double  _v01,
double  _v02,
double  _v10,
double  _v11,
double  _v12,
double  _v20,
double  _v21,
double  _v22 
)

Constructor.

Parameters:
_v00Row 0, Col 0 value
_v01Row 0, Col 1 value
_v02Row 0, Col 2 value
_v10Row 1, Col 0 value
_v11Row 1, Col 1 value
_v12Row 1, Col 2 value
_v20Row 2, Col 0 value
_v21Row 2, Col 1 value
_v22Row 2, Col 2 value

Member Function Documentation

void SetCol ( unsigned int  _c,
const Vector3 _v 
)

Set a column.

Parameters:
_cThe colum index (0,1,2)
_vThe value to set in each row of the column
void SetFromAxes ( const Vector3 _xAxis,
const Vector3 _yAxis,
const Vector3 _zAxis 
)

Set the matrix from three axis.

Parameters:
_xAxisThe x axis
_yAxisThe y axis
_zAxisThe z axis

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  _out,
const gazebo::math::Matrix3 _m 
) [friend]

Output operator.

Parameters:
_outOutput stream
_mMatrix to output

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