All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Nimble::Interpolating Class Reference

Catmull-Rom. More...

#include <Nimble/Splines.hpp>

Public Member Functions

void add (Nimble::Vector2 point)
 Adds a control point.
 
void clear ()
 Clears the interpolation key-points.
 
Nimble::Vector2 get (float t) const
 Evaluates the spline at given t. More...
 
Nimble::Vector2 getControlPoint (size_t i) const
 Returns the ith control point.
 
Nimble::Vector2 getDerivative (size_t ii, float t) const
 Get derivative at the given interpolation point.
 
void remove (size_t ii)
 Removes the control point at the given index.
 
size_t size () const
 Returns the number of control points.
 

Friends

class Luminous::RenderContext
 
class Luminous::Spline
 

Detailed Description

Catmull-Rom.

Member Function Documentation

Nimble::Vector2 Nimble::Interpolating::get ( float  t) const

Evaluates the spline at given t.

Parameters
tposition where to evaluate the spline. 0 <= t <= size() - 1
Returns
Interpolated point on spline