Class sandy.core.transform.ScaleInterpolator

Implemented Interfaces

Interpolator3D

Description

ScaleInterpolator

Method Index

new ScaleInterpolator()
getEndMatrix(), getStartMatrix(), getType(), redo(), setMaxScale(), setMaxScaleVector(), setMinScale(), setMinScaleVector(), toString(), yoyo()

Inherited from BasicInterpolator

Constructor Detail

ScaleInterpolator

public function ScaleInterpolator(f:Function, pnFrames:Number, min:Vector, max:Vector)

Create a new ScaleInterpolator.

This class realise a scale 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.
minVector The vector containing the initial scale values.
maxVector The vector containing the final scale values.

Method Detail

setMinScaleVector

public function setMinScaleVector(v:Vector):Void

Set the start scale vector. The objects will be initialized after this method call with this value.

Parameters

vThe vector containing the initial scale properties

setMinScale

public function setMinScale(x:Number, y:Number, z:Number):Void

Set the start scale vector. The objects will be initialized after this method call with this value.

Parameters

xThe X axis initial scale value
yThe Y axis initial scale value
zThe Z axis initial scale value

setMaxScaleVector

public function setMaxScaleVector(v:Vector):Void

Set the end scale vector. The objects will be initialized after this method call.

Parameters

vThe vector containing the end scale properties.

setMaxScale

public function setMaxScale(x:Number, y:Number, z:Number):Void

Set the end scale vector. The objects will be initialized after this method call.

Parameters

xThe X axis end scale value
yThe Y axis end scale value
zThe Z axis end scale value

getStartMatrix

public function getStartMatrix(Void):Matrix4

getEndMatrix

public function getEndMatrix(Void):Matrix4

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

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