Class QuadTo
- java.lang.Object
-
- org.openscience.cdk.renderer.elements.path.PathElement
-
- org.openscience.cdk.renderer.elements.path.QuadTo
-
public class QuadTo extends PathElement
Make a quadratic curve in the path.- Author:
- Arvid
- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
-
Field Summary
Fields Modifier and Type Field Description double[]
coords
Coordinates of control point and end point.-
Fields inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
points()
Get the points in the path.void
points(double[] coords)
Load the provided array with the specified coordinates of this path element.-
Methods inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type
-
-
-
-
Constructor Detail
-
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 Detail
-
points
public float[] points()
Get the points in the path.- Specified by:
points
in 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:
points
in classPathElement
- Parameters:
coords
- coordinates (length = 6)
-
-