You.i Engine
CYIInterpolateBezier Class Reference

Detailed Description

An interpolator that follows a bezier curve.

This interpolator maps the incoming range to a bezier curve.

Note
If an instance of this class is created using the default constructor, the bezier parameters have to be set by using the SetParameters function.

#include <animation/YiInterpolateBezier.h>

Inheritance diagram for CYIInterpolateBezier:

Public Member Functions

 CYIInterpolateBezier ()
 
 CYIInterpolateBezier (float c0, float c1, float c2, float c3, float scale)
 
virtual ~CYIInterpolateBezier ()
 
void SetParameters (float c0, float c1, float c2, float c3, float scale)
 
virtual float Interpolate (float timePercentage) override
 
- Public Member Functions inherited from CYITimeInterpolator
virtual ~CYITimeInterpolator ()
 
virtual void Reset ()
 

Constructor & Destructor Documentation

◆ CYIInterpolateBezier() [1/2]

CYIInterpolateBezier::CYIInterpolateBezier ( )

◆ CYIInterpolateBezier() [2/2]

CYIInterpolateBezier::CYIInterpolateBezier ( float  c0,
float  c1,
float  c2,
float  c3,
float  scale 
)

◆ ~CYIInterpolateBezier()

virtual CYIInterpolateBezier::~CYIInterpolateBezier ( )
virtual

Member Function Documentation

◆ Interpolate()

virtual float CYIInterpolateBezier::Interpolate ( float  timePercentage)
overridevirtual

Remaps the value timePercentage onto a new range and returns the remapped value. The range used to remap onto is dependent on the specific type of interpolator used.

Implements CYITimeInterpolator.

◆ SetParameters()

void CYIInterpolateBezier::SetParameters ( float  c0,
float  c1,
float  c2,
float  c3,
float  scale 
)

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