TrinityCore
|
#include <PhysicsFrame.h>
Public Member Functions | |
PhysicsFrame () | |
PhysicsFrame (const Vector3 &translation) | |
PhysicsFrame (const Quat &rot, const Vector3 &translation) | |
PhysicsFrame (const Matrix3 &rot, const Vector3 &translation) | |
PhysicsFrame (const Matrix3 &rot) | |
PhysicsFrame (const CoordinateFrame &coordinateFrame) | |
PhysicsFrame & | operator= (const PhysicsFrame &p) |
PhysicsFrame (const class Any &any) | |
Any | toAny () const |
PhysicsFrame | operator* (const PhysicsFrame &other) const |
virtual | ~PhysicsFrame () |
PhysicsFrame | lerp (const PhysicsFrame &other, float alpha) const |
void | deserialize (class BinaryInput &b) |
void | serialize (class BinaryOutput &b) const |
operator CFrame () const | |
PhysicsFrame & | operator*= (float f) |
PhysicsFrame | operator* (float f) const |
PhysicsFrame | operator+ (const PhysicsFrame &f) const |
PhysicsFrame & | operator+= (const PhysicsFrame &f) |
bool | operator== (const PhysicsFrame &other) const |
bool | operator!= (const PhysicsFrame &other) const |
Public Attributes | |
Quat | rotation |
Point3 | translation |
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.
Purely translational.
G3D::PhysicsFrame::PhysicsFrame | ( | const CoordinateFrame & | coordinateFrame | ) |
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 |
Point3 G3D::PhysicsFrame::translation |
Origin of this reference frame in its parent's frame.