NChartBezierInterpolator Class Reference

Inherits from NChartInterpolator : NSObject
Declared in NChartBezierInterpolator.h

Overview

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 + t2 * v_from, where v_from, v_to are respectively the start and end values, v_c is control point and t is the time.

+ bezierInterpolatorWithControlPoint:

Create the bezier interpolator with given control point.

+ (id)bezierInterpolatorWithControlPoint:(float)controlPoint

Parameters

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

Return Value

new instance of bezier interpolator.

Declared In

NChartBezierInterpolator.h

– initWithControlPoint:

Initialize the bezier interpolator with given control point.

- (id)initWithControlPoint:(float)controlPoint

Parameters

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

Return Value

initialized instance of bezier interpolator.

Declared In

NChartBezierInterpolator.h

  controlPoint

Control point of bezier interpolator.

@property (nonatomic, assign) float controlPoint

Declared In

NChartBezierInterpolator.h