|
Momentum Scripting v1
|
#include <Matrix3x3.h>
Public Member Functions | |
| Matrix3x3 () | |
| Matrix3x3 (agx::Matrix3x3 mat) | |
| Matrix3x3 (const Matrix3x3 &mat) | |
| Matrix3x3 (const Quat &rotation) | |
| Matrix3x3 (double a00, double a01, double a02, double a10, double a11, double a12, double a20, double a21, double a22) | |
| Matrix3x3 (double const *const ptr) | |
| ~Matrix3x3 () | |
| double | at (size_t row, size_t col) const |
| Quat | getAsQuat () const |
| Vec3 | getCol (size_t col) const |
| Quat | getRotate () const |
| Vec3 | getRow (size_t row) const |
| Matrix3x3 | inverse () const |
| bool | isFinite () const |
| bool | isIdentity () const |
| bool | isNaN () const |
| bool | isRigidTransformation () const |
| void | mult (const Matrix3x3 &, const Matrix3x3 &) |
| Vec3 | mult (const Vec3 &v) const |
| bool | operator!= (const Matrix3x3 &m) const |
| double & | operator() (size_t row, size_t col) |
| double | operator() (size_t row, size_t col) const |
| Matrix3x3 | operator* (const Matrix3x3 &m) const |
| Vec3 | operator* (const Vec3 &v) const |
| void | operator*= (const Matrix3x3 &other) |
| Matrix3x3 | operator= (const Matrix3x3 &rhs) |
| bool | operator== (const Matrix3x3 &m) const |
| void | postMult (const Matrix3x3 &) |
| void | preMult (const Matrix3x3 &) |
| double * | ptr () |
| const double * | ptr () const |
| Matrix3x3 | set (double a00, double a01, double a02, double a10, double a11, double a12, double a20, double a21, double a22) |
| Matrix3x3 | set (double const *const ptr) |
| void | setCol (size_t col, const Vec3 &vec) |
| Matrix3x3 | setIdentity () |
| Matrix3x3 | setRotate (const Quat &q) |
| Matrix3x3 | setRotate (const Vec3 &from, const Vec3 &to) |
| Matrix3x3 | setRotate (double angle, const Vec3 &axis) |
| Matrix3x3 | setRotate (double angle, double x, double y, double z) |
| Matrix3x3 | setRotate (double angle1, const Vec3 &axis1, double angle2, const Vec3 &axis2, double angle3, const Vec3 &axis3) |
| void | setRow (size_t row, const Vec3 &vec) |
| Matrix3x3 | transpose () const |
| bool | valid () const |
Static Public Member Functions | |
| static Matrix3x3 | crossMatrix (const Vec3 &vec) |
| static Matrix3x3 | rotate (const Vec3 &from, const Vec3 &to) |
| static Matrix3x3 | rotate (double angle, const Vec3 &axis) |
| static Matrix3x3 | rotate (double angle, double x, double y, double z) |
| static Matrix3x3 | rotate (double angle1, const Vec3 &axis1, double angle2, const Vec3 &axis2, double angle3, const Vec3 &axis3) |
Matrix class for inertia.
| MOMENTUM_NAMESPACE::Matrix3x3::Matrix3x3 | ( | agx::Matrix3x3 | mat | ) |
| MOMENTUM_NAMESPACE::Matrix3x3::Matrix3x3 | ( | ) |
Creates a new matrix, initialized to be an identity matrix.
| MOMENTUM_NAMESPACE::Matrix3x3::Matrix3x3 | ( | const Matrix3x3 & | mat | ) |
Copy constructor.
| MOMENTUM_NAMESPACE::Matrix3x3::Matrix3x3 | ( | double const *const | ptr | ) |
Create a matrix from a vector of 9 reals.
| MOMENTUM_NAMESPACE::Matrix3x3::Matrix3x3 | ( | const Quat & | rotation | ) |
Create a matrix from a quaternion.
| MOMENTUM_NAMESPACE::Matrix3x3::Matrix3x3 | ( | double | a00, |
| double | a01, | ||
| double | a02, | ||
| double | a10, | ||
| double | a11, | ||
| double | a12, | ||
| double | a20, | ||
| double | a21, | ||
| double | a22 | ||
| ) |
Create a matrix from 9 double scalars.
| MOMENTUM_NAMESPACE::Matrix3x3::~Matrix3x3 | ( | ) |
Destructor.
| double MOMENTUM_NAMESPACE::Matrix3x3::at | ( | size_t | row, |
| size_t | col | ||
| ) | const |
Generates a new matrix of a specific type.
| Quat MOMENTUM_NAMESPACE::Matrix3x3::getAsQuat | ( | ) | const |
| Vec3 MOMENTUM_NAMESPACE::Matrix3x3::getCol | ( | size_t | col | ) | const |
| Quat MOMENTUM_NAMESPACE::Matrix3x3::getRotate | ( | ) | const |
| Vec3 MOMENTUM_NAMESPACE::Matrix3x3::getRow | ( | size_t | row | ) | const |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::inverse | ( | ) | const |
Matrix inverse.
| bool MOMENTUM_NAMESPACE::Matrix3x3::isFinite | ( | ) | const |
| bool MOMENTUM_NAMESPACE::Matrix3x3::isIdentity | ( | ) | const |
| bool MOMENTUM_NAMESPACE::Matrix3x3::isNaN | ( | ) | const |
| bool MOMENTUM_NAMESPACE::Matrix3x3::isRigidTransformation | ( | ) | const |
| bool MOMENTUM_NAMESPACE::Matrix3x3::operator!= | ( | const Matrix3x3 & | m | ) | const |
| double & MOMENTUM_NAMESPACE::Matrix3x3::operator() | ( | size_t | row, |
| size_t | col | ||
| ) |
| double MOMENTUM_NAMESPACE::Matrix3x3::operator() | ( | size_t | row, |
| size_t | col | ||
| ) | const |
| void MOMENTUM_NAMESPACE::Matrix3x3::operator*= | ( | const Matrix3x3 & | other | ) |
| bool MOMENTUM_NAMESPACE::Matrix3x3::operator== | ( | const Matrix3x3 & | m | ) | const |
| void MOMENTUM_NAMESPACE::Matrix3x3::postMult | ( | const Matrix3x3 & | other | ) |
| void MOMENTUM_NAMESPACE::Matrix3x3::preMult | ( | const Matrix3x3 & | other | ) |
| double * MOMENTUM_NAMESPACE::Matrix3x3::ptr | ( | ) |
| const double * MOMENTUM_NAMESPACE::Matrix3x3::ptr | ( | ) | const |
|
static |
|
static |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::set | ( | double | a00, |
| double | a01, | ||
| double | a02, | ||
| double | a10, | ||
| double | a11, | ||
| double | a12, | ||
| double | a20, | ||
| double | a21, | ||
| double | a22 | ||
| ) |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::set | ( | double const *const | ptr | ) |
| void MOMENTUM_NAMESPACE::Matrix3x3::setCol | ( | size_t | col, |
| const Vec3 & | vec | ||
| ) |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::setIdentity | ( | ) |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::setRotate | ( | double | angle, |
| double | x, | ||
| double | y, | ||
| double | z | ||
| ) |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::setRotate | ( | double | angle1, |
| const Vec3 & | axis1, | ||
| double | angle2, | ||
| const Vec3 & | axis2, | ||
| double | angle3, | ||
| const Vec3 & | axis3 | ||
| ) |
| void MOMENTUM_NAMESPACE::Matrix3x3::setRow | ( | size_t | row, |
| const Vec3 & | vec | ||
| ) |
Set the row of the matrix,.
| row | must be between [0..2] |
| vec | - value of the row |
| Matrix3x3 MOMENTUM_NAMESPACE::Matrix3x3::transpose | ( | ) | const |
| bool MOMENTUM_NAMESPACE::Matrix3x3::valid | ( | ) | const |