mt
 All Classes Files Functions Enumerations Groups Pages
Public Member Functions | List of all members
mt::Matrix3x3 Class Reference

Row-major 3x3 matrix class. More...

#include <matrix3x3.h>

Public Member Functions

 Matrix3x3 ()
 Default constructor. Creates null matrix.
 Matrix3x3 (const Scalar &xx, const Scalar &xy, const Scalar &xz, const Scalar &yx, const Scalar &yy, const Scalar &yz, const Scalar &zx, const Scalar &zy, const Scalar &zz)
 Constructor for 9 (row-major) scalar input values.
Vector3operator[] (size_t n)
const Vector3operator[] (size_t n) const
Matrix3x3operator*= (const Matrix3x3 &m)
 Matrix-matrix product.
Scalar tdot (size_t c, const Vector3 &v) const
 Dot product between matrix column given by c and vector v.
Scalar determinant () const
 Matrix determinant.
Matrix3x3 adjoint () const
 Adjoint matrix.
Matrix3x3 transpose () const
 Transpose matrix.
Matrix3x3 inverse () const
 Inverse matrix.
Matrix3x3 transposeTimes (const Matrix3x3 &m) const
 Calculates $ \mathrm{M_1}^T \mathrm{M_2} $.
Matrix3x3 timesTranspose (const Matrix3x3 &m) const
 Calculates $ \mathrm{M_1} \mathrm{M_2}^T $.
Matrix3x3scale (const Vector3 &v)
 Scales matrix according to input vector v.
Vector3at (size_t n)
const Vector3at (size_t n) const
Vector3 getScaling () const
 Gets matrix scaling vector.
void setValue (const Scalar &xx, const Scalar &xy, const Scalar &xz, const Scalar &yx, const Scalar &yy, const Scalar &yz, const Scalar &zx, const Scalar &zy, const Scalar &zz)
 Sets matrix values from 9 scalar input values (row-major ordered).
void setIdentity ()
 Sets identity matrix values.

Detailed Description

Row-major 3x3 matrix class.

The Matrix3x3 class provides the usual operators and functions used for expressing and manipulating 3x3 matrices.

Member Function Documentation

Vector3 & mt::Matrix3x3::at ( size_t  n)
inline

Checked element access.

Returns
n th matrix row.
const Vector3 & mt::Matrix3x3::at ( size_t  n) const
inline

Checked element access.

Returns
n th matrix row.
Vector3 & mt::Matrix3x3::operator[] ( size_t  n)
inline

Unchecked element access.

Returns
n th matrix row.
const Vector3 & mt::Matrix3x3::operator[] ( size_t  n) const
inline

Unchecked element access.

Returns
n th matrix row.

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