|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.curve.AbstractContinuousCurve2D math.geom2d.curve.AbstractSmoothCurve2D math.geom2d.spline.QuadBezierCurve2D math.geom2d.spline.QuadBezier2D
@Deprecated public class QuadBezier2D
An extension of the QuadCurve2D curve provided in java.awt.geom, with support for SmoothCurve2D and OrientedCurve2D.
Field Summary |
---|
Fields inherited from class math.geom2d.spline.QuadBezierCurve2D |
---|
ctrlx, ctrly, x1, x2, y1, y2 |
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
QuadBezier2D()
Deprecated. |
|
QuadBezier2D(double[][] coefs)
Deprecated. Build a new Bezier curve from its array of coefficients. |
|
QuadBezier2D(double x1,
double y1,
double xctrl,
double yctrl,
double x2,
double y2)
Deprecated. Build a new quadratic Bezier curve by specifying position of extreme points and position of control point. |
|
QuadBezier2D(Point2D[] pts)
Deprecated. |
|
QuadBezier2D(Point2D p1,
Point2D ctrl,
Point2D p2)
Deprecated. Build a new quadratic Bezier curve by specifying position of extreme points and position of control point. |
Method Summary | |
---|---|
CurveSet2D<? extends QuadBezier2D> |
clip(Box2D box)
Deprecated. Clip the circle arc by a box. |
QuadBezier2D |
clone()
Deprecated. Overrides Object declaration to ensure Curve2D implementation are cloned as Curve2D. |
boolean |
equals(Object obj)
Deprecated. |
QuadBezier2D |
getReverseCurve()
Deprecated. Returns the bezier curve given by control points taken in reverse order. |
QuadBezier2D |
getSubCurve(double t0,
double t1)
Deprecated. Computes portion of BezierCurve. |
QuadBezier2D |
transform(AffineTransform2D trans)
Deprecated. Returns the Bezier Curve transformed by the given AffineTransform2D. |
Methods inherited from class math.geom2d.spline.QuadBezierCurve2D |
---|
appendPath, contains, contains, create, getBoundingBox, getControl, getCtrl, getCurvature, getDistance, getDistance, getFirstPoint, getGeneralPath, getIntersections, getLastPoint, getP1, getP2, getParametric, getPoint, getPosition, getSignedDistance, getSignedDistance, getT0, getT1, getTangent, getWindingAngle, isBounded, isClosed, isEmpty, isInside, project |
Methods inherited from class math.geom2d.curve.AbstractSmoothCurve2D |
---|
getLeftTangent, getRightTangent, getSingularPoints, getSmoothPieces, isSingular |
Methods inherited from class math.geom2d.curve.AbstractContinuousCurve2D |
---|
draw, getAsAWTShape, getAsPolyline, getContinuousCurves, wrapCurve |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.curve.SmoothCurve2D |
---|
getCurvature, getTangent |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, getAsPolyline, getLeftTangent, getRightTangent, getSmoothPieces, isClosed |
Methods inherited from interface math.geom2d.domain.OrientedCurve2D |
---|
getSignedDistance, getSignedDistance, getWindingAngle, isInside |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project |
Methods inherited from interface math.geom2d.Shape2D |
---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
Constructor Detail |
---|
public QuadBezier2D()
public QuadBezier2D(double[][] coefs)
coefs
- the coefficients of the QuadBezier2D.public QuadBezier2D(Point2D p1, Point2D ctrl, Point2D p2)
p1
- first pointctrl
- control pointp2
- last pointpublic QuadBezier2D(Point2D[] pts)
public QuadBezier2D(double x1, double y1, double xctrl, double yctrl, double x2, double y2)
Method Detail |
---|
public QuadBezier2D getReverseCurve()
getReverseCurve
in interface ContinuousCurve2D
getReverseCurve
in interface Curve2D
getReverseCurve
in interface SmoothCurve2D
getReverseCurve
in interface ContinuousOrientedCurve2D
getReverseCurve
in interface OrientedCurve2D
getReverseCurve
in class QuadBezierCurve2D
public QuadBezier2D getSubCurve(double t0, double t1)
getSubCurve
in interface ContinuousCurve2D
getSubCurve
in interface Curve2D
getSubCurve
in interface SmoothCurve2D
getSubCurve
in interface ContinuousOrientedCurve2D
getSubCurve
in class QuadBezierCurve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
public CurveSet2D<? extends QuadBezier2D> clip(Box2D box)
clip
in interface ContinuousCurve2D
clip
in interface Curve2D
clip
in interface SmoothCurve2D
clip
in interface ContinuousOrientedCurve2D
clip
in interface OrientedCurve2D
clip
in interface Shape2D
clip
in class QuadBezierCurve2D
box
- the clipping box
public QuadBezier2D transform(AffineTransform2D trans)
transform
in interface ContinuousCurve2D
transform
in interface Curve2D
transform
in interface SmoothCurve2D
transform
in interface ContinuousOrientedCurve2D
transform
in interface OrientedCurve2D
transform
in interface Shape2D
transform
in class QuadBezierCurve2D
trans
- an affine transform
public boolean equals(Object obj)
equals
in class QuadBezierCurve2D
public QuadBezier2D clone()
Curve2D
clone
in interface Curve2D
clone
in class QuadBezierCurve2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |