![]() |
TrinityCore
|
#include <PhysicsFrameSpline.h>
Public Member Functions | |
PhysicsFrameSpline () | |
PhysicsFrameSpline (const Any &any) | |
bool | operator== (const PhysicsFrameSpline &a) const |
bool | operator!= (const PhysicsFrameSpline &a) const |
void | scaleControlPoints (float scaleFactor) |
virtual void | correct (PhysicsFrame &frame) const |
virtual void | ensureShortestPath (PhysicsFrame *A, int N) const |
virtual Any | toAny (const std::string &myName) const override |
Any | toAny () const |
![]() | |
Spline () | |
Spline (const Any &any) | |
void | append (float t, const PhysicsFrame &c) |
void | append (const PhysicsFrame &c) |
void | clear () |
int | size () const |
void | getControl (int i, float &t, PhysicsFrame &c) const |
PhysicsFrame | evaluate (float s) const |
![]() | |
SplineBase () | |
virtual | ~SplineBase () |
float | getFinalInterval () const |
float | duration () const |
void | computeIndex (float s, int &i, float &u) const |
Additional Inherited Members | |
![]() | |
static Matrix4 | computeBasis () |
![]() | |
Array< PhysicsFrame > | control |
![]() | |
Array< float > | time |
SplineExtrapolationMode | extrapolationMode |
float | finalInterval |
SplineInterpolationMode | interpolationMode |
![]() | |
void | getControls (int i, float *T, PhysicsFrame *A, int N) const |
virtual void | init (AnyTableReader &propertyTable) |
![]() | |
void | computeIndexInBounds (float s, int &i, float &u) const |
![]() | |
PhysicsFrame | zero |
A subclass of Spline that keeps the rotation field of a PhysicsFrame normalized and rotating the short direction.
Accepts a table of properties, or any valid PhysicsFrame specification for a single control
|
virtual |
Normalize or otherwise adjust this interpolated Control.
Reimplemented from G3D::Spline< PhysicsFrame >.
|
virtual |
Mutates the array of N control points that begins at A. It is useful to override this method by one that wraps the values if they are angles or quaternions for which "shortest path" interpolation is significant.
Reimplemented from G3D::Spline< PhysicsFrame >.
|
inline |
bool G3D::PhysicsFrameSpline::operator== | ( | const PhysicsFrameSpline & | a | ) | const |
void G3D::PhysicsFrameSpline::scaleControlPoints | ( | float | scaleFactor | ) |
Mutates all underlying PhysicsFrames by scaling their translation by
scaleFactor |
|
inlineoverridevirtual |
Note that invoking classes can call setName on the returned value instead of passing a name in.
Reimplemented from G3D::Spline< PhysicsFrame >.
|
inline |