| Support Forum G3D Web Page |
An RT transformation using a quaternion; suitable for physics integration. More...
Public Member Functions | |
| PhysicsFrame () | |
Initializes to the identity frame. More... | |
| PhysicsFrame (const Vector3 &translation) | |
Purely translational. More... | |
| PhysicsFrame (const Quat &rot, const Vector3 &translation) | |
| PhysicsFrame (const Matrix3 &rot, const Vector3 &translation) | |
| PhysicsFrame (const Matrix3 &rot) | |
| PhysicsFrame (const CoordinateFrame &coordinateFrame) | |
| PhysicsFrame (const class Any &any) | |
| virtual | ~PhysicsFrame () |
| void | deserialize (class BinaryInput &b) |
| PhysicsFrame | lerp (const PhysicsFrame &other, float alpha) const |
Linear interpolation (spherical linear for the rotations). More... | |
| operator CFrame () const | |
| bool | operator!= (const PhysicsFrame &other) const |
| PhysicsFrame | operator* (const PhysicsFrame &other) const |
| Compose: create the transformation that is other followed by this. More... | |
| PhysicsFrame | operator* (float f) const |
| Multiplies both pieces by f; note that this will result in a non-unit quaternion that needs to be normalized. More... | |
| PhysicsFrame & | operator*= (float f) |
| Multiplies both pieces by f; note that this will result in a non-unit quaternion that needs to be normalized. More... | |
| PhysicsFrame | operator+ (const PhysicsFrame &f) const |
| PhysicsFrame & | operator+= (const PhysicsFrame &f) |
| PhysicsFrame & | operator= (const PhysicsFrame &p) |
| bool | operator== (const PhysicsFrame &other) const |
| void | serialize (class BinaryOutput &b) const |
| Any | toAny () const |
Public Attributes | |
| Quat | rotation |
| Point3 | translation |
Origin of this reference frame in its parent's frame. More... | |
An RT transformation using a quaternion; suitable for physics integration.
This interface is in "Beta" and will change in the next release.
| G3D::PhysicsFrame::PhysicsFrame | ( | ) |
Initializes to the identity frame.
Referenced by operator*(), and operator+().
|
inline |
Purely translational.
|
inline |
| G3D::PhysicsFrame::PhysicsFrame | ( | const CoordinateFrame & | coordinateFrame | ) |
| G3D::PhysicsFrame::PhysicsFrame | ( | const class Any & | any | ) |
|
inlinevirtual |
| void G3D::PhysicsFrame::deserialize | ( | class BinaryInput & | b | ) |
| PhysicsFrame G3D::PhysicsFrame::lerp | ( | const PhysicsFrame & | other, |
| float | alpha | ||
| ) | const |
Linear interpolation (spherical linear for the rotations).
| G3D::PhysicsFrame::operator CFrame | ( | ) | const |
|
inline |
| PhysicsFrame G3D::PhysicsFrame::operator* | ( | const PhysicsFrame & | other | ) | const |
Compose: create the transformation that is other followed by this.
|
inline |
Multiplies both pieces by f; note that this will result in a non-unit quaternion that needs to be normalized.
|
inline |
Multiplies both pieces by f; note that this will result in a non-unit quaternion that needs to be normalized.
|
inline |
|
inline |
|
inline |
|
inline |
| void G3D::PhysicsFrame::serialize | ( | class BinaryOutput & | b | ) | const |
| Any G3D::PhysicsFrame::toAny | ( | ) | const |
| Quat G3D::PhysicsFrame::rotation |
Referenced by operator*(), operator*=(), operator+(), operator+=(), operator=(), and operator==().
| Point3 G3D::PhysicsFrame::translation |
Origin of this reference frame in its parent's frame.
Referenced by operator*(), operator*=(), operator+(), operator+=(), operator=(), and operator==().
1.8.15