public interface ICubicCurve extends IShape, Cloneable
CubicCurve
.Modifier and Type | Method and Description |
---|---|
CubicCurve |
clone()
Returns a mutable copy of this curve.
|
Point |
ctrlP1()
Returns a copy of the first control point of this curve.
|
Point |
ctrlP2()
Returns a copy of the second control point of this curve.
|
float |
ctrlX1()
Returns the x-coordinate of the first control point.
|
float |
ctrlX2()
Returns the x-coordinate of the second control point.
|
float |
ctrlY1()
Returns the y-coordinate of the first control point.
|
float |
ctrlY2()
Returns the y-coordinate of the second control point.
|
float |
flatness()
Returns the flatness (maximum distance of a control point from the line connecting the end
points) of this curve.
|
float |
flatnessSq()
Returns the square of the flatness (maximum distance of a control point from the line
connecting the end points) of this curve.
|
Point |
p1()
Returns a copy of the starting point of this curve.
|
Point |
p2()
Returns a copy of the ending point of this curve.
|
void |
subdivide(CubicCurve left,
CubicCurve right)
Subdivides this curve and stores the results into
left and right . |
float |
x1()
Returns the x-coordinate of the start of this curve.
|
float |
x2()
Returns the x-coordinate of the end of this curve.
|
float |
y1()
Returns the y-coordinate of the start of this curve.
|
float |
y2()
Returns the y-coordinate of the end of this curve.
|
bounds, bounds, contains, contains, contains, contains, intersects, intersects, isEmpty, pathIterator, pathIterator
float x1()
float y1()
float ctrlX1()
float ctrlY1()
float ctrlX2()
float ctrlY2()
float x2()
float y2()
Point p1()
Point ctrlP1()
Point ctrlP2()
Point p2()
float flatnessSq()
float flatness()
void subdivide(CubicCurve left, CubicCurve right)
left
and right
.CubicCurve clone()
Copyright © 2017. All rights reserved.