A 3x3 matrix class.
More...
#include <Matrix3.hh>
|
| Matrix3 () |
| Constructor. More...
|
|
| Matrix3 (const Matrix3 &_m) |
| Copy constructor. More...
|
|
| Matrix3 (double _v00, double _v01, double _v02, double _v10, double _v11, double _v12, double _v20, double _v21, double _v22) |
| Constructor. More...
|
|
virtual | ~Matrix3 () |
| Desctructor. More...
|
|
Matrix3 | operator* (const double &_s) const |
| returns the element wise scalar multiplication More...
|
|
Matrix3 | operator* (const Matrix3 &_m) const |
| Matrix multiplication operator. More...
|
|
math::Vector3 | operator* (const math::Vector3 &_v) const |
| Matrix times Vector3 operator. More...
|
|
Matrix3 | operator+ (const Matrix3 &_m) const |
| returns the element wise sum of two matrices More...
|
|
Matrix3 | operator- (const Matrix3 &_m) const |
| returns the element wise difference of two matrices More...
|
|
bool | operator== (const Matrix3 &_m) const |
| Equality test operator. More...
|
|
const double * | operator[] (size_t _row) const |
| Array subscript operator. More...
|
|
double * | operator[] (size_t _row) |
| Array subscript operator. More...
|
|
void | SetCol (unsigned int _c, const Vector3 &_v) |
| Set a column. More...
|
|
void | SetFromAxes (const Vector3 &_xAxis, const Vector3 &_yAxis, const Vector3 &_zAxis) |
| Set the matrix from three axis (1 per column) More...
|
|
void | SetFromAxis (const Vector3 &_axis, double _angle) |
| Set the matrix from an axis and angle. More...
|
|
gazebo::math::Matrix3::Matrix3 |
( |
| ) |
|
gazebo::math::Matrix3::Matrix3 |
( |
const Matrix3 & |
_m | ) |
|
Copy constructor.
- Parameters
-
gazebo::math::Matrix3::Matrix3 |
( |
double |
_v00, |
|
|
double |
_v01, |
|
|
double |
_v02, |
|
|
double |
_v10, |
|
|
double |
_v11, |
|
|
double |
_v12, |
|
|
double |
_v20, |
|
|
double |
_v21, |
|
|
double |
_v22 |
|
) |
| |
Constructor.
- Parameters
-
[in] | _v00 | Row 0, Col 0 value |
[in] | _v01 | Row 0, Col 1 value |
[in] | _v02 | Row 0, Col 2 value |
[in] | _v10 | Row 1, Col 0 value |
[in] | _v11 | Row 1, Col 1 value |
[in] | _v12 | Row 1, Col 2 value |
[in] | _v20 | Row 2, Col 0 value |
[in] | _v21 | Row 2, Col 1 value |
[in] | _v22 | Row 2, Col 2 value |
virtual gazebo::math::Matrix3::~Matrix3 |
( |
| ) |
|
|
virtual |
Matrix3 gazebo::math::Matrix3::operator* |
( |
const double & |
_s | ) |
const |
|
inline |
returns the element wise scalar multiplication
Matrix multiplication operator.
- Parameters
-
- Returns
- product of this * _m
returns the element wise sum of two matrices
returns the element wise difference of two matrices
bool gazebo::math::Matrix3::operator== |
( |
const Matrix3 & |
_m | ) |
const |
Equality test operator.
- Parameters
-
- Returns
- True if equal (using the default tolerance of 1e-6)
const double* gazebo::math::Matrix3::operator[] |
( |
size_t |
_row | ) |
const |
|
inline |
Array subscript operator.
- Parameters
-
- Returns
- a pointer to the row
double* gazebo::math::Matrix3::operator[] |
( |
size_t |
_row | ) |
|
|
inline |
Array subscript operator.
- Parameters
-
- Returns
- a pointer to the row
void gazebo::math::Matrix3::SetCol |
( |
unsigned int |
_c, |
|
|
const Vector3 & |
_v |
|
) |
| |
Set a column.
- Parameters
-
[in] | _c | The colum index (0, 1, 2) |
[in] | _v | The value to set in each row of the column |
void gazebo::math::Matrix3::SetFromAxes |
( |
const Vector3 & |
_xAxis, |
|
|
const Vector3 & |
_yAxis, |
|
|
const Vector3 & |
_zAxis |
|
) |
| |
Set the matrix from three axis (1 per column)
- Parameters
-
[in] | _xAxis | The x axis |
[in] | _yAxis | The y axis |
[in] | _zAxis | The z axis |
void gazebo::math::Matrix3::SetFromAxis |
( |
const Vector3 & |
_axis, |
|
|
double |
_angle |
|
) |
| |
Set the matrix from an axis and angle.
- Parameters
-
[in] | _axis | the axis |
[in] | _angle | ccw rotation around the axis in radians |
Multiplication operators.
- Parameters
-
[in] | _s | the scaling factor |
[in] | _m | input matrix |
- Returns
- a scaled matrix
Stream insertion operator.
- Parameters
-
[in] | _out | Output stream |
[in] | _m | Matrix to output |
- Returns
- the stream
const Matrix3 gazebo::math::Matrix3::IDENTITY |
|
static |
double gazebo::math::Matrix3::m[3][3] |
|
protected |
const Matrix3 gazebo::math::Matrix3::ZERO |
|
static |
The documentation for this class was generated from the following file: