20#ifdef BT_USE_DOUBLE_PRECISION
21#define btTransformData btTransformDoubleData
23#define btTransformData btTransformFloatData
61 : m_basis(other.m_basis),
62 m_origin(other.m_origin)
93 return x.
dot3(m_basis[0], m_basis[1], m_basis[2]) + m_origin;
105 return getRotation() * q;
131 m_origin.
setValue(m[12], m[13], m[14]);
139 m[12] = m_origin.
x();
140 m[13] = m_origin.
y();
141 m[14] = m_origin.
z();
201 return identityTransform;
btMatrix3x3 operator*(const btMatrix3x3 &m, const btScalar &k)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
void setFromOpenGLSubMatrix(const btScalar *m)
Set from the rotational part of a 4x4 OpenGL matrix.
btMatrix3x3 transpose() const
Return the transpose of the matrix.
void getRotation(btQuaternion &q) const
Get the matrix represented as a quaternion.
void deSerializeFloat(const struct btMatrix3x3FloatData &dataIn)
static const btMatrix3x3 & getIdentity()
void setIdentity()
Set the matrix to the identity.
void getOpenGLSubMatrix(btScalar *m) const
Fill the rotational part of an OpenGL matrix and clear the shear/perspective.
btMatrix3x3 transposeTimes(const btMatrix3x3 &m) const
void deSerializeDouble(const struct btMatrix3x3DoubleData &dataIn)
void serialize(struct btMatrix3x3Data &dataOut) const
void serializeFloat(struct btMatrix3x3FloatData &dataOut) const
void deSerialize(const struct btMatrix3x3Data &dataIn)
void setRotation(const btQuaternion &q)
Set the matrix from a quaternion.
The btQuaternion implements quaternion to perform linear algebra rotations in combination with btMatr...
btVector3 can be used to represent 3D points and vectors.
void deSerialize(const struct btVector3DoubleData &dataIn)
const btScalar & z() const
Return the z value.
void deSerializeFloat(const struct btVector3FloatData &dataIn)
btVector3 dot3(const btVector3 &v0, const btVector3 &v1, const btVector3 &v2) const
void serializeFloat(struct btVector3FloatData &dataOut) const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
void deSerializeDouble(const struct btVector3DoubleData &dataIn)
const btScalar & x() const
Return the x value.
void serialize(struct btVector3Data &dataOut) const
const btScalar & y() const
Return the y value.