MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / getInverse

Method getInverse

include/reactphysics3d/mathematics/Transform.h:162–165  ·  view source on GitHub ↗

Return the inverse of the transform

Source from the content-addressed store, hash-verified

160
161// Return the inverse of the transform
162RP3D_FORCE_INLINE Transform Transform::getInverse() const {
163 const Quaternion& invQuaternion = mOrientation.getInverse();
164 return Transform(invQuaternion * (-mPosition), invQuaternion);
165}
166
167// Return an interpolated transform
168RP3D_FORCE_INLINE Transform Transform::interpolateTransforms(const Transform& oldTransform,

Callers

nothing calls this directly

Calls 1

TransformClass · 0.70

Tested by

no test coverage detected