Packagede.popforge.interpolation
Classpublic final class InterpolationCosine
InheritanceInterpolationCosine Inheritance Interpolation



Public Properties
 PropertyDefined by
 Inheritedmode : uint
Interpolation
Protected Properties
 PropertyDefined by
 InheritednumPoints : uint
The number of control points.
Interpolation
 Inheritedpoints : Array
An array of control points.
Interpolation
Public Methods
 MethodDefined by
  
InterpolationCosine(mapping:IMapping = null)
Creates a new InterpolationLinear object.
InterpolationCosine
 Inherited
addChangedCallbacks(callback:Function):void
Interpolation
 Inherited
Adds a control point.
Interpolation
 Inherited
bake(resolution:uint = 0xff):void
Bakes the current interpolation.
Interpolation
 Inherited
getInterpolationAt(x:Number):Number
Interpolation
 Inherited
getValueAt(x:Number):*
Retrievs the interpolated value at position x and returns the mapped value.
Interpolation
 Inherited
removeChangedCallbacks(callback:Function):void
Interpolation
 Inherited
Removes a control point by reference.
Interpolation
  
toString():String
Creates the string representation of the current object.
InterpolationCosine
Protected Methods
 MethodDefined by
 Inherited
clamp(value:Number):Number
Clamps a value so that 0 <= value <= 1 is true.
Interpolation
 Inherited
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.
InterpolationCosine
Constructor detail
InterpolationCosine()constructor
public function InterpolationCosine(mapping:IMapping = null)

Creates a new InterpolationLinear object.

Parameters
mapping:IMapping (default = null) — The IMapping object used to map the normalized value.
Method detail
interpolate()method
protected override function interpolate(x:Number):Number

Calculates the cosine interpolated value y for x based on the control points.

Parameters
x:Number — Normalized position on the x-axis.

Returns
Number — The y value at given position x.
toString()method 
public override function toString():String

Creates the string representation of the current object.

Returns
String — The string representation of the current object.