Class CubicTo
java.lang.Object
org.openscience.cdk.renderer.elements.path.PathElement
org.openscience.cdk.renderer.elements.path.CubicTo
A cubic curve in the path.
- Author:
- Arvid
- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double[]
Coordinates of control point 1, control point 2 and end point.Fields inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type
-
Constructor Summary
ConstructorsConstructorDescriptionCubicTo
(double[] coords) Make a cubic curve path element.CubicTo
(double cp1x, double cp1y, double cp2x, double cp2y, double epx, double epy) Make a cubic curve path element.CubicTo
(javax.vecmath.Point2d cp1, javax.vecmath.Point2d cp2, javax.vecmath.Point2d ep) Make a cubic curve path element. -
Method Summary
Methods inherited from class org.openscience.cdk.renderer.elements.path.PathElement
type
-
Field Details
-
coords
public final double[] coordsCoordinates of control point 1, control point 2 and end point.
-
-
Constructor Details
-
CubicTo
public CubicTo(javax.vecmath.Point2d cp1, javax.vecmath.Point2d cp2, javax.vecmath.Point2d ep) Make a cubic curve path element.- Parameters:
cp1
- first control point in the cubiccp2
- second control point in the cubicep
- end point of the cubic
-
CubicTo
public CubicTo(double[] coords) Make a cubic curve path element.- Parameters:
coords
- [0,1] : control point 1, [2,3] : control point 2, [4,5] end point
-
CubicTo
public CubicTo(double cp1x, double cp1y, double cp2x, double cp2y, double epx, double epy) Make a cubic curve path element.- Parameters:
cp1x
- first control point in the cubic x coordcp1y
- first control point in the cubic y coordcp2x
- second control point in the cubic x coordcp2y
- second 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:
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)
-