Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
RNSpline Class Reference

Rounded Nonuniform Spline for describing spatial curves or paths with constant speed. More...

#include <NUSpline.h>

Inheritance diagram for RNSpline:
Collaboration diagram for RNSpline:

Public Member Functions

 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
 

Public Attributes

fixed MaxDistance
 
int NodeCount
 

Protected Member Functions

CVector3D GetStartVelocity (int index)
 
CVector3D GetEndVelocity (int index)
 

Protected Attributes

std::vector< SplineDataNode
 

Detailed Description

Rounded Nonuniform Spline for describing spatial curves or paths with constant speed.

Constructor & Destructor Documentation

◆ RNSpline()

RNSpline::RNSpline ( )

◆ ~RNSpline()

RNSpline::~RNSpline ( )
virtualdefault

Member Function Documentation

◆ AddNode()

void RNSpline::AddNode ( const CFixedVector3D pos)

◆ BuildSpline()

void RNSpline::BuildSpline ( )

◆ GetAllNodes()

const std::vector< SplineData > & RNSpline::GetAllNodes ( ) const

◆ GetEndVelocity()

CVector3D RNSpline::GetEndVelocity ( int  index)
protected

◆ GetPosition()

CVector3D RNSpline::GetPosition ( float  time) const

◆ GetRotation()

CVector3D RNSpline::GetRotation ( float  time) const

◆ GetStartVelocity()

CVector3D RNSpline::GetStartVelocity ( int  index)
protected

Member Data Documentation

◆ MaxDistance

fixed RNSpline::MaxDistance

◆ Node

std::vector<SplineData> RNSpline::Node
protected

◆ NodeCount

int RNSpline::NodeCount

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