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
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
| Matrix3 |
( |
double |
_v00, |
|
|
double |
_v01, |
|
|
double |
_v02, |
|
|
double |
_v10, |
|
|
double |
_v11, |
|
|
double |
_v12, |
|
|
double |
_v20, |
|
|
double |
_v21, |
|
|
double |
_v22 |
|
) |
| |
Constructor.
- Parameters:
-
| _v00 | Row 0, Col 0 value |
| _v01 | Row 0, Col 1 value |
| _v02 | Row 0, Col 2 value |
| _v10 | Row 1, Col 0 value |
| _v11 | Row 1, Col 1 value |
| _v12 | Row 1, Col 2 value |
| _v20 | Row 2, Col 0 value |
| _v21 | Row 2, Col 1 value |
| _v22 | Row 2, Col 2 value |
Member Function Documentation
| void SetCol |
( |
unsigned int |
_c, |
|
|
const Vector3 & |
_v |
|
) |
| |
Set a column.
- Parameters:
-
| _c | The colum index (0,1,2) |
| _v | The value to set in each row of the column |
Set the matrix from three axis.
- Parameters:
-
| _xAxis | The x axis |
| _yAxis | The y axis |
| _zAxis | The z axis |
Friends And Related Function Documentation
Output operator.
- Parameters:
-
| _out | Output stream |
| _m | Matrix to output |
The documentation for this class was generated from the following file: