Java java.awt.geom CubicCurve2D fields, constructors, methods, implement or subclass

Example usage for Java java.awt.geom CubicCurve2D fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.geom CubicCurve2D.

The text is from its open source code.

Method

booleancontains(Point2D p)
booleancontains(Rectangle2D r)
booleancontains(double x, double y)
RectanglegetBounds()
Point2DgetCtrlP1()
Returns the first control point.
Point2DgetCtrlP2()
Returns the second control point.
doublegetCtrlX1()
Returns the X coordinate of the first control point in double precision.
doublegetCtrlX2()
Returns the X coordinate of the second control point in double precision.
doublegetCtrlY1()
Returns the Y coordinate of the first control point in double precision.
doublegetCtrlY2()
Returns the Y coordinate of the second control point in double precision.
doublegetFlatness()
Returns the flatness of this curve.
Point2DgetP1()
Returns the start point.
Point2DgetP2()
Returns the end point.
doublegetX1()
Returns the X coordinate of the start point in double precision.
doublegetX2()
Returns the X coordinate of the end point in double precision.
doublegetY2()
Returns the Y coordinate of the end point in double precision.
voidsetCurve(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.
intsolveCubic(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.