SuperTuxKart
Classes | Public Member Functions | Private Attributes | List of all members
BezierCurve Class Reference

A class to manage bezier curves and interpolation. More...

#include <bezier_curve.hpp>

Classes

struct  BezierData
 A data structure to store one bezier control point and the two handles. More...
 

Public Member Functions

 BezierCurve (const XMLNode &node)
 
Vec3 getXYZ (float t) const
 
Vec3 getHPR (float t) const
 
unsigned int getNumPoints () const
 Returns the number of points in this bezier curve. More...
 

Private Attributes

AlignedArray< BezierDatam_all_data
 Vector with all control points and handles. More...
 

Detailed Description

A class to manage bezier curves and interpolation.

Member Function Documentation

◆ getNumPoints()

unsigned int BezierCurve::getNumPoints ( ) const
inline

Returns the number of points in this bezier curve.

Member Data Documentation

◆ m_all_data

AlignedArray<BezierData> BezierCurve::m_all_data
private

Vector with all control points and handles.


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