#include <R2Arma.h>
Public Member Functions | |
Roto2DArma (CanonicalArmaMatrix init=ZERO_ARMA_MATRIX) | |
Default constructor. | |
Roto2DArma (const Decimal &a11, const Decimal &a12, const Decimal &a21, const Decimal &a22) | |
Complete constructor, given as the four elements of the matrix. | |
Roto2DArma (const Decimal &yaw) | |
Constructor with yaw (cos(yaw) -sin(yaw); sin(yaw) cos(yaw)). | |
Roto2DArma (const Roto2DArma &A) | |
Copy constructor. | |
Roto2DArma (const arma::Mat< Decimal >::fixed< 2, 2 > &rhs) | |
Copy constructor from an arma Matrix. | |
Roto2DArma (const vector< Decimal > &vec) | |
Constructor with vector of Decimal (vec.at(0) vec.at(1); vec.at(2) vec.at(3)). | |
Roto2DArma & | operator= (const Roto2DArma &rhs) |
Assignment operator. | |
Roto2DArma & | operator= (const arma::Mat< Decimal >::fixed< 2, 2 > &rhs) |
Assignment operator. | |
Roto2DArma & | operator+= (const Roto2DArma &pos) |
Compound assignment operator product by a another Roto2DArma pos +=. | |
Roto2DArma | operator+ (Roto2DArma &other) const |
Binary arithmetic operator element-wise Roto2DArma. | |
Roto2DArma | operator- (Roto2DArma &other) const |
Binary arithmetic operator element-wise Roto2DArma. | |
Roto2DArma & | operator-= (const Roto2DArma &pos) |
Compound assignment operator product by a another Roto2DArma pos -=. | |
Roto2DArma & | operator*= (const Roto2DArma &pos) |
Compound assignment operator product by a another Roto2DArma pos *=. | |
Roto2DArma & | operator*= (const Decimal &scalar) |
Compound assignment operator product by a scalar *. | |
Roto2DArma | operator* (Roto2DArma &other) const |
Binary arithmetic operator element-wise scalar. | |
Roto2DArma & | operator/= (const Roto2DArma &pos) |
Compound assignment operator product by a another Roto2DArma pos *=. | |
Roto2DArma & | operator/= (const Decimal &scalar) |
Compound assignment operator product by a scalar *. | |
Roto2DArma | operator/ (Roto2DArma &other) const |
Binary arithmetic operator element-wise scalar. | |
string | print () |
Print. | |
Roto2DArma | invMatrix () |
Return the inverse matrix using armadillo libraries. | |
arma::Mat< Decimal > | subMat (int r, int c, int R, int C) |
Return the submatrix specified by the input values. | |
arma::Row< Decimal >::fixed< 2 > | getFirstRow () const |
Get the first row of the matrix. | |
arma::Row< Decimal >::fixed< 2 > | getSecondRow () const |
Get the second row of the matrix. | |
arma::Col< Decimal >::fixed< 2 > | getFirstCol () const |
Get the first row of the matrix. | |
arma::Col< Decimal >::fixed< 2 > | getSecondCol () const |
Get the second row of the matrix. | |
Decimal | getElem (int r, int c) const |
Return the element in position [r,c] starting from [0,0]. | |
void | setElem (int r, int c, const Decimal &item) |
Set the element in position [r,c] starting from [0,0]. | |
Decimal | getYaw () const |
Get the yaw angle. | |
Angle | getYawAngle () const |
Get the yaw angle. | |
arma::Mat< Decimal >::fixed< 2, 2 > * | getMat () |
Pointer to armadillo matrix. |
Roto2DArma::Roto2DArma | ( | CanonicalArmaMatrix | init = ZERO_ARMA_MATRIX |
) |
Default constructor.
Roto2DArma::Roto2DArma | ( | const Decimal & | a11, | |
const Decimal & | a12, | |||
const Decimal & | a21, | |||
const Decimal & | a22 | |||
) |
Complete constructor, given as the four elements of the matrix.
Roto2DArma::Roto2DArma | ( | const Decimal & | yaw | ) |
Constructor with yaw (cos(yaw) -sin(yaw); sin(yaw) cos(yaw)).
Roto2DArma::Roto2DArma | ( | const Roto2DArma & | A | ) |
Copy constructor.
Roto2DArma::Roto2DArma | ( | const arma::Mat< Decimal >::fixed< 2, 2 > & | rhs | ) |
Copy constructor from an arma Matrix.
MipBaselib::Roto2DArma::Roto2DArma | ( | const vector< Decimal > & | vec | ) |
Constructor with vector of Decimal (vec.at(0) vec.at(1); vec.at(2) vec.at(3)).
Roto2DArma & Roto2DArma::operator= | ( | const Roto2DArma & | rhs | ) |
Assignment operator.
Roto2DArma & Roto2DArma::operator= | ( | const arma::Mat< Decimal >::fixed< 2, 2 > & | rhs | ) |
Assignment operator.
Roto2DArma & Roto2DArma::operator+= | ( | const Roto2DArma & | pos | ) |
Compound assignment operator product by a another Roto2DArma pos +=.
Roto2DArma Roto2DArma::operator+ | ( | Roto2DArma & | other | ) | const |
Binary arithmetic operator element-wise Roto2DArma.
Roto2DArma Roto2DArma::operator- | ( | Roto2DArma & | other | ) | const |
Binary arithmetic operator element-wise Roto2DArma.
Roto2DArma & Roto2DArma::operator-= | ( | const Roto2DArma & | pos | ) |
Compound assignment operator product by a another Roto2DArma pos -=.
Roto2DArma & Roto2DArma::operator*= | ( | const Roto2DArma & | pos | ) |
Compound assignment operator product by a another Roto2DArma pos *=.
Roto2DArma & Roto2DArma::operator*= | ( | const Decimal & | scalar | ) |
Compound assignment operator product by a scalar *.
Roto2DArma Roto2DArma::operator* | ( | Roto2DArma & | other | ) | const |
Binary arithmetic operator element-wise scalar.
Roto2DArma & Roto2DArma::operator/= | ( | const Roto2DArma & | pos | ) |
Compound assignment operator product by a another Roto2DArma pos *=.
Roto2DArma & Roto2DArma::operator/= | ( | const Decimal & | scalar | ) |
Compound assignment operator product by a scalar *.
Roto2DArma Roto2DArma::operator/ | ( | Roto2DArma & | other | ) | const |
Binary arithmetic operator element-wise scalar.
string Roto2DArma::print | ( | ) |
Print.
Roto2DArma Roto2DArma::invMatrix | ( | ) |
Return the inverse matrix using armadillo libraries.
arma::Mat< Decimal > Roto2DArma::subMat | ( | int | r, | |
int | c, | |||
int | R, | |||
int | C | |||
) |
Return the submatrix specified by the input values.
[in] | r | First row |
[in] | R | Last row |
[in] | c | First column |
[in] | C | Last column |
arma::Row< Decimal >::fixed< 2 > Roto2DArma::getFirstRow | ( | ) | const |
Get the first row of the matrix.
arma::Row< Decimal >::fixed< 2 > Roto2DArma::getSecondRow | ( | ) | const |
Get the second row of the matrix.
arma::Col< Decimal >::fixed< 2 > Roto2DArma::getFirstCol | ( | ) | const |
Get the first row of the matrix.
arma::Col< Decimal >::fixed< 2 > Roto2DArma::getSecondCol | ( | ) | const |
Get the second row of the matrix.
Decimal Roto2DArma::getElem | ( | int | r, | |
int | c | |||
) | const |
Return the element in position [r,c] starting from [0,0].
[in] | r | Row of the element one wants to find |
[in] | c | Column of the element one wants to find |
void Roto2DArma::setElem | ( | int | r, | |
int | c, | |||
const Decimal & | item | |||
) |
Set the element in position [r,c] starting from [0,0].
[in] | r | Row of the element one wants to set |
[in] | c | Column of the element one wants to set |
[in] | item | Element one wants to insert in [r,c] |
Decimal Roto2DArma::getYaw | ( | ) | const |
Get the yaw angle.
Angle Roto2DArma::getYawAngle | ( | ) | const |
Get the yaw angle.
arma::Mat< Decimal >::fixed< 2, 2 > * Roto2DArma::getMat | ( | ) |
Pointer to armadillo matrix.