26 #define TransformData TransformDoubleData 61 : m_basis(other.m_basis),
62 m_origin(other.m_origin)
92 return Vector3(m_basis[0].
dot(x) + m_origin.x(),
93 m_basis[1].dot(x) + m_origin.y(),
94 m_basis[2].dot(x) + m_origin.z());
132 m_origin.setValue(m[12],m[13],m[14]);
140 m[12] = m_origin.x();
141 m[13] = m_origin.y();
142 m[14] = m_origin.z();
204 return identityTransform;
268 m_origin.serialize(dataOut.m_origin);
274 m_origin.serializeFloat(dataOut.
m_origin);
281 m_origin.deSerialize(dataIn.m_origin);
287 m_origin.deSerializeFloat(dataIn.
m_origin);
293 m_origin.deSerializeDouble(dataIn.
m_origin);
Matrix3x3 transposeTimes(const Matrix3x3 &m) const
void getRotation(Quaternion &q) const
Get the matrix represented as a quaternion.
The Quaternion implements quaternion to perform linear algebra rotations in combination with Matrix3x...
void deSerializeDouble(const struct Matrix3x3DoubleData &dataIn)
double tfScalar
The tfScalar type abstracts floating point numbers, to easily switch between double and single floati...
TFSIMD_FORCE_INLINE bool operator==(const Matrix3x3 &m1, const Matrix3x3 &m2)
Equality operator between two matrices It will test all elements are equal.
Matrix3x3 transpose() const
Return the transpose of the matrix.
void serialize(struct Matrix3x3Data &dataOut) const
The Matrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with Q...
void setRotation(const Quaternion &q)
Set the matrix from a quaternion.
void setIdentity()
Set the matrix to the identity.
void serializeFloat(struct Matrix3x3FloatData &dataOut) const
#define TFSIMD_FORCE_INLINE
void deSerializeFloat(const struct Matrix3x3FloatData &dataIn)
TFSIMD_FORCE_INLINE tfScalar dot(const Quaternion &q1, const Quaternion &q2)
Calculate the dot product between two quaternions.
void getOpenGLSubMatrix(tfScalar *m) const
Fill the values of the matrix into a 9 element array.
void setFromOpenGLSubMatrix(const tfScalar *m)
Set from a carray of tfScalars.
Vector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-byte...
void deSerialize(const struct Matrix3x3Data &dataIn)
static const Matrix3x3 & getIdentity()