Class CubicCurve
Defined in: primitives.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CubicCurve(startPoint, controlPoint1, controlPoint2, endPoint)
Creates an instance of a cubic curve.
|
Field Attributes | Field Name and Description |
---|---|
The first controll Point
|
|
The second controll Point
|
|
The end Point
|
|
Object type used for JSON deserialization
|
|
The start Point
|
|
The Style of the quad
|
Method Attributes | Method Name and Description |
---|---|
clone()
|
|
contains(x, y)
Inspired by java.awt.geom.CubicCurve2D
|
|
deprecated_contains(x, y)
|
|
equals(anotherCubicCurve)
|
|
<static> |
CubicCurve.load(o)
Creates a {CubicCurve} out of JSON parsed object
|
near(x, y, radius)
TODO: algorithm not clear and maybe we can find the math formula to determine if we have an intersection
|
|
paint(context)
|
|
toString()
|
|
toSVG()
Render the SVG fragment for this primitive
|
|
transform(matrix)
|
Class Detail
CubicCurve(startPoint, controlPoint1, controlPoint2, endPoint)
Creates an instance of a cubic curve.
A curved line determined by 2 normal points (startPoint and endPoint) and 2 control points (controlPoint1, controlPoint2)
Field Detail
controlPoint1
The first controll Point
controlPoint2
The second controll Point
endPoint
The end Point
oType
Object type used for JSON deserialization
startPoint
The start Point
style
The Style of the quad
Method Detail
clone()
contains(x, y)
Inspired by java.awt.geom.CubicCurve2D
- Parameters:
- x
- y
deprecated_contains(x, y)
- Parameters:
- x
- y
equals(anotherCubicCurve)
- Parameters:
- anotherCubicCurve
getBounds()
getPoints()
<static>
{CubicCurve}
CubicCurve.load(o)
Creates a {CubicCurve} out of JSON parsed object
Author: Alex Gheorghiu.
Author: Alex Gheorghiu
- Parameters:
- {JSONObject} o
- - the JSON parsed object
- Returns:
- {CubicCurve} a newly constructed CubicCurve
near(x, y, radius)
TODO: algorithm not clear and maybe we can find the math formula to determine if we have an intersection
- Parameters:
- x
- y
- radius
paint(context)
- Parameters:
- context
toString()
toSVG()
Render the SVG fragment for this primitive
transform(matrix)
- Parameters:
- matrix