Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
TNSpline Class Reference

Timed Nonuniform Spline for paths with different time intervals between nodes. More...

#include <NUSpline.h>

Inheritance diagram for TNSpline:
Collaboration diagram for TNSpline:

Public Member Functions

virtual ~TNSpline ()
 
void AddNode (const CFixedVector3D &pos, const CFixedVector3D &rotation, fixed timePeriod)
 
void InsertNode (const int index, const CFixedVector3D &pos, const CFixedVector3D &rotation, fixed timePeriod)
 
void RemoveNode (const int index)
 
void UpdateNodePos (const int index, const CFixedVector3D &pos)
 
void UpdateNodeTime (const int index, fixed time)
 
void BuildSpline ()
 
void Smooth ()
 
void Constrain ()
 
- Public Member Functions inherited from SNSpline
virtual ~SNSpline ()
 
void BuildSpline ()
 
void Smooth ()
 
- Public Member Functions inherited from RNSpline
 RNSpline ()
 
virtual ~RNSpline ()
 
void AddNode (const CFixedVector3D &pos)
 
void BuildSpline ()
 
CVector3D GetPosition (float time) const
 
CVector3D GetRotation (float time) const
 
const std::vector< SplineData > & GetAllNodes () const
 

Additional Inherited Members

- Public Attributes inherited from RNSpline
fixed MaxDistance
 
int NodeCount
 
- Protected Member Functions inherited from RNSpline
CVector3D GetStartVelocity (int index)
 
CVector3D GetEndVelocity (int index)
 
- Protected Attributes inherited from RNSpline
std::vector< SplineDataNode
 

Detailed Description

Timed Nonuniform Spline for paths with different time intervals between nodes.

Constructor & Destructor Documentation

◆ ~TNSpline()

TNSpline::~TNSpline ( )
virtualdefault

Member Function Documentation

◆ AddNode()

void TNSpline::AddNode ( const CFixedVector3D pos,
const CFixedVector3D rotation,
fixed  timePeriod 
)

◆ BuildSpline()

void TNSpline::BuildSpline ( )

◆ Constrain()

void TNSpline::Constrain ( )

◆ InsertNode()

void TNSpline::InsertNode ( const int  index,
const CFixedVector3D pos,
const CFixedVector3D rotation,
fixed  timePeriod 
)

◆ RemoveNode()

void TNSpline::RemoveNode ( const int  index)

◆ Smooth()

void TNSpline::Smooth ( )

◆ UpdateNodePos()

void TNSpline::UpdateNodePos ( const int  index,
const CFixedVector3D pos 
)

◆ UpdateNodeTime()

void TNSpline::UpdateNodeTime ( const int  index,
fixed  time 
)

The documentation for this class was generated from the following files: