public class CubicTo extends PathElement
| Modifier and Type | Field and Description |
|---|---|
double[] |
coords
Coordinates of control point 1, control point 2 and end point.
|
type| Constructor and Description |
|---|
CubicTo(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.
|
| Modifier and Type | Method and 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.
|
typepublic final double[] coords
public CubicTo(javax.vecmath.Point2d cp1,
javax.vecmath.Point2d cp2,
javax.vecmath.Point2d ep)
cp1 - first control point in the cubiccp2 - second control point in the cubicep - end point of the cubicpublic CubicTo(double[] coords)
coords - [0,1] : control point 1, [2,3] : control point 2, [4,5] end
pointpublic CubicTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double epx,
double epy)
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 coordpublic float[] points()
points in class PathElementpublic void points(double[] coords)
points in class PathElementcoords - coordinates (length = 6)Copyright © 2018. All Rights Reserved.