Class Index | File Index

Classes


Class CAAT.Behavior.Interpolator


Defined in: Interpolator.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<private>  
<private>  
bounce(time)
 
 
 
 
 
createCubicBezierInterpolator(p0, p1, p2, p3, bPingPong)
Creates a Cubic bezier curbe as interpolator.
 
createElasticInInterpolator(amplitude, p, bPingPong)
 
createElasticInOutInterpolator(amplitude, p, bPingPong)
 
createElasticOutInterpolator(amplitude, p, bPingPong)
 
createExponentialInInterpolator(exponent, bPingPong)
Set an exponential interpolator function.
 
Set an exponential interpolator function.
 
createExponentialOutInterpolator(exponent, bPingPong)
Set an exponential interpolator function.
 
createLinearInterpolator(bPingPong, bInverse)
Set a linear interpolation function.
 
createQuadricBezierInterpolator(p0, p1, p2, bPingPong)
Creates a Quadric bezier curbe as interpolator.
<static>  
CAAT.Behavior.Interpolator.enumerateInterpolators()
 
getContour(iSize)
Gets an array of coordinates which define the polyline of the intepolator's curve contour.
 
Linear and inverse linear interpolation function.
 
paint(ctx)
Paints an interpolator on screen.
<static>  
CAAT.Behavior.Interpolator.parse(obj)
Class Detail
CAAT.Behavior.Interpolator()
Method Detail
<private> __init()

<private> bounce(time)
Parameters:
time
{number}

createBackOutInterpolator(bPingPong)
Parameters:
bPingPong

createBounceInInterpolator(bPingPong)
Parameters:
bPingPong

createBounceInOutInterpolator(bPingPong)
Parameters:
bPingPong

createBounceOutInterpolator(bPingPong)
Parameters:
bPingPong

createCubicBezierInterpolator(p0, p1, p2, p3, bPingPong)
Creates a Cubic bezier curbe as interpolator.
Parameters:
p0
{CAAT.Math.Point}
p1
{CAAT.Math.Point}
p2
{CAAT.Math.Point}
p3
{CAAT.Math.Point}
bPingPong
{boolean} a boolean indicating if the interpolator must ping-pong.

createElasticInInterpolator(amplitude, p, bPingPong)
Parameters:
amplitude
p
bPingPong

createElasticInOutInterpolator(amplitude, p, bPingPong)
Parameters:
amplitude
p
bPingPong

createElasticOutInterpolator(amplitude, p, bPingPong)
Parameters:
amplitude
p
bPingPong

createExponentialInInterpolator(exponent, bPingPong)
Set an exponential interpolator function. The function to apply will be Math.pow(time,exponent). This function starts with 0 and ends in values of 1.
Parameters:
exponent
{number} exponent of the function.
bPingPong
{boolean}

createExponentialInOutInterpolator(exponent, bPingPong)
Set an exponential interpolator function. Two functions will apply: Math.pow(time*2,exponent)/2 for the first half of the function (t<0.5) and 1-Math.abs(Math.pow(time*2-2,exponent))/2 for the second half (t>=.5) This function starts with 0 and goes to values of 1 and ends with values of 0.
Parameters:
exponent
{number} exponent of the function.
bPingPong
{boolean}

createExponentialOutInterpolator(exponent, bPingPong)
Set an exponential interpolator function. The function to apply will be 1-Math.pow(time,exponent). This function starts with 1 and ends in values of 0.
Parameters:
exponent
{number} exponent of the function.
bPingPong
{boolean}

createLinearInterpolator(bPingPong, bInverse)
Set a linear interpolation function.
Parameters:
bPingPong
{boolean}
bInverse
{boolean} will values will be from 1 to 0 instead of 0 to 1 ?.

createQuadricBezierInterpolator(p0, p1, p2, bPingPong)
Creates a Quadric bezier curbe as interpolator.
Parameters:
p0
{CAAT.Math.Point}
p1
{CAAT.Math.Point}
p2
{CAAT.Math.Point}
bPingPong
{boolean} a boolean indicating if the interpolator must ping-pong.

<static> CAAT.Behavior.Interpolator.enumerateInterpolators()

getContour(iSize)
Gets an array of coordinates which define the polyline of the intepolator's curve contour. Values for both coordinates range from 0 to 1.
Parameters:
iSize
{number} an integer indicating the number of contour segments.
Returns:
Array. of object of the form {x:float, y:float}.

getPosition(time)
Linear and inverse linear interpolation function.
Parameters:
time
{number}

paint(ctx)
Paints an interpolator on screen.
Parameters:
ctx
{CanvasRenderingContext}

<static> CAAT.Behavior.Interpolator.parse(obj)
Parameters:
obj

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:15 GMT-0700 (PDT)