Class sandy.core.transform.PathInterpolator

Implemented Interfaces

Interpolator3D

Description

PathInterpolator

Method Index

new PathInterpolator()
getEndMatrix(), getStartMatrix(), getType(), redo(), toString(), yoyo()

Inherited from BasicInterpolator

Constructor Detail

PathInterpolator

public function PathInterpolator(f:Function, pnFrames:Number, pPath:BezierPath)

Create a new PathInterpolator.

This class realise a position interpolation of the group of objects it has been applied to

Parameters

fFunction The function generating the interpolation value. You can use what you want even if Sandy recommends the Ease class The function must return a number between [0,1] and must have a parameter between [0,1] too.
pPathBezierPath The path that objects will go throught

Method Detail

getStartMatrix

public function getStartMatrix(Void):Matrix4

getEndMatrix

public function getEndMatrix(Void):Matrix4

getType

public function getType(Void):TransformType

Returns the type of the interpolation.

Parameters

Void

Return

TransformType the type of the interpolation

Overrides

getType() in sandy.core.transform.BasicInterpolator

toString

public function toString():String

redo

public function redo(Void):Void

redo

Make the interpolation starting again

Specified By

redo() in sandy.core.transform.Interpolator3D

Overrides

redo() in sandy.core.transform.BasicInterpolator

yoyo

public function yoyo(Void):Void

yoyo

Make the interpolation going in the inversed way

Specified By

yoyo() in sandy.core.transform.Interpolator3D

Overrides

yoyo() in sandy.core.transform.BasicInterpolator