Class Index | File Index

Classes


Class CAAT.Math.CatmullRom


Extends CAAT.Math.Curve.

Defined in: CatmullRom.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class CAAT.Math.Curve:
coordlist, drawHandles, HANDLE_SIZE, k, length
Method Summary
Method Attributes Method Name and Description
 
applyAsPath(director)
 
Return the first curve control point.
 
paint(director)
Paint the contour by solving again the entire curve.
 
setCurve(p0, p1, p2, p3)
Set curve control points.
 
solve(point, t)
Solves the curve for any given parameter t.
 
Return the last curve control point.
Methods borrowed from class CAAT.Math.Curve:
calcLength, getBoundingBox, getContour, getLength, setPoint, setPoints, update
Class Detail
CAAT.Math.CatmullRom()
Method Detail
applyAsPath(director)
Parameters:
director

{CAAT.Point} endCurvePosition()
Return the first curve control point.
Returns:
{CAAT.Point}

paint(director)
Paint the contour by solving again the entire curve.
Parameters:
director
{CAAT.Director}

setCurve(p0, p1, p2, p3)
Set curve control points.
Parameters:
p0
p1
p2
p3

solve(point, t)
Solves the curve for any given parameter t.
Parameters:
point
{CAAT.Point} the point to store the solved value on the curve.
t
{number} a number in the range 0..1

{CAAT.Point} startCurvePosition()
Return the last curve control point.
Returns:
{CAAT.Point}

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