Package | de.popforge.interpolation |
Class | public final class InterpolationCubic |
Inheritance | InterpolationCubic ![]() |
Method | Defined by | ||
---|---|---|---|
InterpolationCubic(mapping:IMapping = null)
Creates a new InterpolationLinear object.
| InterpolationCubic | ||
![]() |
addChangedCallbacks(callback:Function):void
| Interpolation | |
![]() |
addControlPoint(point:ControlPoint):void
Adds a control point.
| Interpolation | |
![]() |
bake(resolution:uint = 0xff):void
Bakes the current interpolation.
| Interpolation | |
![]() |
getInterpolationAt(x:Number):Number
| Interpolation | |
![]() |
getValueAt(x:Number):*
Retrievs the interpolated value at position x and returns the mapped value.
| Interpolation | |
![]() |
removeChangedCallbacks(callback:Function):void
| Interpolation | |
![]() |
removeControlPoint(point:ControlPoint):void
Removes a control point by reference.
| Interpolation | |
toString():String
Creates the string representation of the current object.
| InterpolationCubic |
Method | Defined by | ||
---|---|---|---|
![]() |
clamp(value:Number):Number
Clamps a value so that
0 <= value <= 1 is true. | Interpolation | |
![]() |
findPointBefore(x:Number):uint
Searches for a point that is prior to x.
| Interpolation | |
interpolate(x:Number):Number
Calculates the cosine interpolated value y for x based on the control points.
| InterpolationCubic |
InterpolationCubic | () | constructor |
public function InterpolationCubic(mapping:IMapping = null)
Creates a new InterpolationLinear object.
Parametersmapping:IMapping (default = null ) — The IMapping object used to map the normalized value.
|
interpolate | () | method |
protected override function interpolate(x:Number):Number
Calculates the cosine interpolated value y for x based on the control points.
Parametersx:Number — Normalized position on the x-axis.
|
Number — The y value at given position x.
|
toString | () | method |
public override function toString():String
Creates the string representation of the current object.
ReturnsString — The string representation of the current object.
|