Class CAAT.Math.CatmullRom
Extends
CAAT.Math.Curve.
Defined in: CatmullRom.js.
Constructor Attributes | Constructor Name and Description |
---|---|
- Fields borrowed from class CAAT.Math.Curve:
- coordlist, drawHandles, HANDLE_SIZE, k, length
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
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}