Fork me on GitHub

API Documentation


Extends GLGE.JSONLoader, GLGE.QuickNotation.
A curve which interpolates between control points
Defined in: glge_animationcurve.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
addPoint(point)
Adds a point to the curve
 
atX(x, C1, C2, C3, C4)
Get the value of the a single bezier curve
 
coord(frame, y)
Get the value of the curve at any point
 
getValue(frame)
 
setChannel(channel)
Sets the animation channel this curve animates
Methods borrowed from class GLGE.QuickNotation:
_
Methods borrowed from class GLGE.JSONLoader:
getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
Class Detail
GLGE.AnimationCurve(uid)
Parameters:
uid
Method Detail
{Number} addPoint(point)
Adds a point to the curve
Parameters:
{object} point
The point to add
Returns:
{Number} Index of the newly added point

{Number} atX(x, C1, C2, C3, C4)
Get the value of the a single bezier curve
Parameters:
{Number} x
xcoord of point to get
{Number} C1
First bezier control point
{Number} C2
Second bezier control point
{Number} C3
Third bezier control point
{Number} C4
Forth bezier control point
Returns:
{Number} The value of the curve at the given x

{Number} coord(frame, y)
Get the value of the curve at any point
Parameters:
{Number} frame
The frame(x-coord) to return the value for
y
Returns:
{Number} The value of the curve at the given point

getValue(frame)
Parameters:
frame

setChannel(channel)
Sets the animation channel this curve animates
Parameters:
{string} channel
The property to animate

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)