24#ifndef INCLUDED_NUSPLINE
25#define INCLUDED_NUSPLINE
27#define MAX_SPLINE_NODES 128
70 std::vector<SplineData>
Node;
Definition: FixedVector3D.h:25
A simple fixed-point number class.
Definition: Fixed.h:120
Definition: Vector3D.h:31
Rounded Nonuniform Spline for describing spatial curves or paths with constant speed.
Definition: NUSpline.h:53
CVector3D GetPosition(float time) const
Definition: NUSpline.cpp:105
CVector3D GetRotation(float time) const
std::vector< SplineData > Node
Definition: NUSpline.h:70
fixed MaxDistance
Definition: NUSpline.h:65
const std::vector< SplineData > & GetAllNodes() const
Definition: NUSpline.cpp:137
CVector3D GetEndVelocity(int index)
Definition: NUSpline.cpp:152
void BuildSpline()
Definition: NUSpline.cpp:77
RNSpline()
Definition: NUSpline.cpp:50
CVector3D GetStartVelocity(int index)
Definition: NUSpline.cpp:143
void AddNode(const CFixedVector3D &pos)
Definition: NUSpline.cpp:58
int NodeCount
Definition: NUSpline.h:66
Smooth Nonuniform Spline for describing paths with smooth acceleration and deceleration,...
Definition: NUSpline.h:81
void BuildSpline()
Definition: NUSpline.cpp:164
void Smooth()
Definition: NUSpline.cpp:172
Timed Nonuniform Spline for paths with different time intervals between nodes.
Definition: NUSpline.h:94
void UpdateNodeTime(const int index, fixed time)
Definition: NUSpline.cpp:252
void RemoveNode(const int index)
Definition: NUSpline.cpp:242
void UpdateNodePos(const int index, const CFixedVector3D &pos)
Definition: NUSpline.cpp:260
void AddNode(const CFixedVector3D &pos, const CFixedVector3D &rotation, fixed timePeriod)
Definition: NUSpline.cpp:197
void Constrain()
Definition: NUSpline.cpp:284
void BuildSpline()
Definition: NUSpline.cpp:268
void InsertNode(const int index, const CFixedVector3D &pos, const CFixedVector3D &rotation, fixed timePeriod)
Definition: NUSpline.cpp:222
void Smooth()
Definition: NUSpline.cpp:275
Describes a node of the spline.
Definition: NUSpline.h:38
fixed Distance
Definition: NUSpline.h:45
CFixedVector3D Rotation
Definition: NUSpline.h:43
CVector3D Velocity
Definition: NUSpline.h:41
CFixedVector3D Position
Definition: NUSpline.h:40