Example usage for Java java.awt.geom CubicCurve2D fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | contains(Point2D p) |
boolean | contains(Rectangle2D r) |
boolean | contains(double x, double y) |
Rectangle | getBounds() |
Point2D | getCtrlP1() Returns the first control point. |
Point2D | getCtrlP2() Returns the second control point. |
double | getCtrlX1() Returns the X coordinate of the first control point in double precision. |
double | getCtrlX2() Returns the X coordinate of the second control point in double precision. |
double | getCtrlY1() Returns the Y coordinate of the first control point in double precision. |
double | getCtrlY2() Returns the Y coordinate of the second control point in double precision. |
double | getFlatness() Returns the flatness of this curve. |
Point2D | getP1() Returns the start point. |
Point2D | getP2() Returns the end point. |
double | getX1() Returns the X coordinate of the start point in double precision. |
double | getX2() Returns the X coordinate of the end point in double precision. |
double | getY2() Returns the Y coordinate of the end point in double precision. |
void | setCurve(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) Sets the location of the end points and control points of this curve to the specified double coordinates. |
int | solveCubic(double[] eqn, double[] res) Solve the cubic whose coefficients are in the eqn array and place the non-complex roots into the res array, returning the number of roots. |