Class CAAT.Math.Bezier
Extends
CAAT.Math.Curve.
Defined in: Bezier.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
This curbe is cubic or quadratic bezier ?
|
- Fields borrowed from class CAAT.Math.Curve:
- coordlist, drawHandles, HANDLE_SIZE, k, length
Method Attributes | Method Name and Description |
---|---|
applyAsPath(director)
|
|
isCubic()
|
|
paint(director)
Paint this curve.
|
|
<private> |
paintCuadric(director)
Paint this quadric Bezier curve.
|
<private> |
paintCubic(director)
Paint this cubic Bezier curve.
|
setCubic(cp0x, cp0y, cp1x, cp1y, cp2x, cp2y, cp3x, cp3y)
Set this curve as a cubic bezier defined by the given four control points.
|
|
setPoints(points)
|
|
setQuadric(cp0x, cp0y, cp1x, cp1y, cp2x, cp2y)
Set this curve as a quadric bezier defined by the three control points.
|
|
solve(point, t)
Solves the curve for any given parameter t.
|
|
solveCubic(point, t)
Solves a cubic Bezier.
|
|
solveQuadric(point, t)
Solves a quadric Bezier.
|
- Methods borrowed from class CAAT.Math.Curve:
- calcLength, endCurvePosition, getBoundingBox, getContour, getLength, setPoint, startCurvePosition, update
Field Detail
cubic
This curbe is cubic or quadratic bezier ?
Method Detail
applyAsPath(director)
- Parameters:
- director
isCubic()
isQuadric()
paint(director)
Paint this curve.
- Parameters:
- director
- {CAAT.Director}
<private>
paintCuadric(director)
Paint this quadric Bezier curve. Each time the curve is drawn it will be solved again from 0 to 1 with
CAAT.Bezier.k increments.
- Parameters:
- director
- {CAAT.Director}
<private>
paintCubic(director)
Paint this cubic Bezier curve. Each time the curve is drawn it will be solved again from 0 to 1 with
CAAT.Bezier.k increments.
- Parameters:
- director
- {CAAT.Director}
setCubic(cp0x, cp0y, cp1x, cp1y, cp2x, cp2y, cp3x, cp3y)
Set this curve as a cubic bezier defined by the given four control points.
- Parameters:
- cp0x
- {number}
- cp0y
- {number}
- cp1x
- {number}
- cp1y
- {number}
- cp2x
- {number}
- cp2y
- {number}
- cp3x
- {number}
- cp3y
- {number}
setPoints(points)
- Parameters:
- points
setQuadric(cp0x, cp0y, cp1x, cp1y, cp2x, cp2y)
Set this curve as a quadric bezier defined by the three control points.
- Parameters:
- cp0x
- {number}
- cp0y
- {number}
- cp1x
- {number}
- cp1y
- {number}
- cp2x
- {number}
- cp2y
- {number}
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
solveCubic(point, t)
Solves a cubic Bezier.
- Parameters:
- point
- {CAAT.Point} the point to store the solved value on the curve.
- t
- {number} the value to solve the curve for.
solveQuadric(point, t)
Solves a quadric Bezier.
- Parameters:
- point
- {CAAT.Point} the point to store the solved value on the curve.
- t
- {number} the value to solve the curve for.