![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
#include <OgreMatrix4.h>
Public Member Functions | |
TransformBaseReal () | |
Do NOT initialize for efficiency. | |
template<typename U> | |
TransformBaseReal (const U *ptr) | |
Real | determinant () const |
void | extract3x3Matrix (Matrix3 &m3x3) const |
Quaternion | extractQuaternion () const |
Matrix3 | linear () const |
Extracts the rotation / scaling part of the Matrix as a 3x3 matrix. | |
void | makeInverseTransform (const Vector3 &position, const Vector3 &scale, const Quaternion &orientation) |
Building an inverse Affine3 from orientation / scale / position. | |
void | makeTrans (const Vector3 &v) |
Builds a translation matrix. | |
void | makeTrans (Real tx, Real ty, Real tz) |
void | makeTransform (const Vector3 &position, const Vector3 &scale, const Quaternion &orientation) |
Building a Affine3 from orientation / scale / position. | |
void | set3x3Matrix (const Matrix3 &mat3) |
Assignment from 3x3 matrix. | |
Matrix4 | transpose () const |
![]() | |
TransformBase () | |
Do NOT initialize for efficiency. | |
TransformBase (const TransformBase< rows, U > &o) | |
TransformBase (const U *ptr) | |
Vector< 3, Real > | getTrans () const |
Extracts the translation transformation part of the matrix. | |
Real * | operator[] (size_t iRow) |
const Real * | operator[] (size_t iRow) const |
void | setScale (const Vector< 3, Real > &v) |
Sets the scale part of the matrix. | |
void | setTrans (const Vector< 3, Real > &v) |
Sets the translation transformation part of the matrix. | |
|
inline |
Do NOT initialize for efficiency.
Referenced by Ogre::Matrix4::Matrix4().
References Ogre::TransformBase< 4, Real >::TransformBase().
|
inline |
|
inline |
Assignment from 3x3 matrix.
Referenced by Ogre::Affine3::operator=(), and Ogre::Matrix4::operator=().
|
inline |
Extracts the rotation / scaling part of the Matrix as a 3x3 matrix.
Referenced by extract3x3Matrix(), and extractQuaternion().
|
inline |
References linear().
Real Ogre::TransformBaseReal::determinant | ( | ) | const |
References transpose().
void Ogre::TransformBaseReal::makeTransform | ( | const Vector3 & | position, |
const Vector3 & | scale, | ||
const Quaternion & | orientation ) |
Building a Affine3 from orientation / scale / position.
Transform is performed in the order scale, rotate, translation, i.e. translation is independent of orientation axes, scale does not affect size of translation, rotation and scaling are always centered on the origin.
Referenced by Ogre::Affine3::Affine3().
void Ogre::TransformBaseReal::makeInverseTransform | ( | const Vector3 & | position, |
const Vector3 & | scale, | ||
const Quaternion & | orientation ) |
Building an inverse Affine3 from orientation / scale / position.
As makeTransform except it build the inverse given the same data as makeTransform, so performing -translation, -rotate, 1/scale in that order.