Class QuadTo
java.lang.Object
org.openscience.cdk.renderer.elements.path.PathElement
org.openscience.cdk.renderer.elements.path.QuadTo
Make a quadratic curve in the path.
- Author:
- Arvid
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double[]Coordinates of control point and end point.Fields inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openscience.cdk.renderer.elements.path.PathElement
points, toString, type
-
Field Details
-
coords
public final double[] coordsCoordinates of control point and end point.
-
-
Constructor Details
-
QuadTo
public QuadTo(javax.vecmath.Point2d cp, javax.vecmath.Point2d ep) Make a quad curve.- Parameters:
cp- control point of the curveep- end point of the curve
-
QuadTo
public QuadTo(double[] coords) Make a quad curve path element.- Parameters:
coords- [0,1] : control point 1, [2,3] : control point 2, [4,5] end point
-
QuadTo
public QuadTo(double cpx, double cpy, double epx, double epy) Make a quad curve path element.- Parameters:
cpx- control point in the cubic x coordcpy- control point in the cubic y coordepx- end point of the cubic x coordepy- end point of the cubic y coord
-
-
Method Details
-
points
public float[] points()Get the points in the path.- Specified by:
pointsin classPathElement- Returns:
- a list of points
-
points
public void points(double[] coords) Load the provided array with the specified coordinates of this path element.- Specified by:
pointsin classPathElement- Parameters:
coords- coordinates (length = 6)
-