Go to the documentation of this file.
17 #ifndef tf2_Transform_H
18 #define tf2_Transform_H
27 #define TransformData TransformDoubleData
133 m_origin.setValue(m[12],m[13],m[14]);
205 return identityTransform;
269 m_origin.serialize(dataOut.m_origin);
282 m_origin.deSerialize(dataIn.m_origin);
TF2SIMD_FORCE_INLINE tf2Scalar dot(const Quaternion &q1, const Quaternion &q2)
Calculate the dot product between two quaternions.
void deSerializeFloat(const struct Matrix3x3FloatData &dataIn)
void getRotation(Quaternion &q) const
Get the matrix represented as a quaternion.
static const Matrix3x3 & getIdentity()
void getOpenGLSubMatrix(tf2Scalar *m) const
Fill the values of the matrix into a 9 element array.
void setRotation(const Quaternion &q)
Set the matrix from a quaternion.
Matrix3x3 transposeTimes(const Matrix3x3 &m) const
void deSerialize(const struct Matrix3x3Data &dataIn)
TF2SIMD_FORCE_INLINE bool operator==(const Matrix3x3 &m1, const Matrix3x3 &m2)
Equality operator between two matrices It will test all elements are equal.
void deSerializeDouble(const struct Matrix3x3DoubleData &dataIn)
#define TF2SIMD_FORCE_INLINE
void setIdentity()
Set the matrix to the identity.
void setFromOpenGLSubMatrix(const tf2Scalar *m)
Set from a carray of tf2Scalars.
void serializeFloat(struct Matrix3x3FloatData &dataOut) const
The Quaternion implements quaternion to perform linear algebra rotations in combination with Matrix3x...
void serialize(struct Matrix3x3Data &dataOut) const
Matrix3x3 transpose() const
Return the transpose of the matrix.
double tf2Scalar
The tf2Scalar type abstracts floating point numbers, to easily switch between double and single float...
The Matrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with Q...
tf2
Author(s): Tully Foote, Eitan Marder-Eppstein, Wim Meeussen
autogenerated on Sun Feb 4 2024 03:18:11