com.nchart3d.NChart.NChartBezierInterpolator Class Reference

The NChartBezierInterpolator class provides bezier interpolator. More...

Inheritance diagram for com.nchart3d.NChart.NChartBezierInterpolator:
com.nchart3d.NChart.NChartInterpolator

Public Member Functions

 NChartBezierInterpolator (float controlPoint)
 Create the bezier iterpolator with given control point. More...
 
float getControlPoint ()
 Control point of bezier interpolator.
 
void setControlPoint (float controlPoint)
 For details see getControlPoint().
 

Detailed Description

The NChartBezierInterpolator class provides bezier interpolator.

If it is used, the animated values will changed in time as follows: v(t) = (1 - t)^2 * v_from + 2 * t * (1 - t) * v_c + t^2 * v_from, where v_from, v_to are respectively the start and end values, v_c is control point and t is the time.

Constructor & Destructor Documentation

com.nchart3d.NChart.NChartBezierInterpolator.NChartBezierInterpolator ( float  controlPoint)
inline

Create the bezier iterpolator with given control point.

Parameters
controlPoint- control point. Very often it makes sense when the control point is equal to the end value of animated property.