public interface ContinuousCurve2D extends Curve2D
Such curves accept parametric representation, in the form :
p(t)={x(t),y(t)}
, with t
contained in
appropriate domain. Bounds of domain of definition can be obtained by methods
getT0()
and getT1()
.
Modifier and Type | Method and Description |
---|---|
GeneralPath |
appendPath(GeneralPath path)
Append the path of the curve to the given path.
|
CurveSet2D |
clip(Box2D box)
When a curve is clipped, the result is a set of curves.
|
Polyline2D |
getAsPolyline(int n)
Returns an approximation of the curve as a polyline with
n
line segments. |
Vector2D |
getLeftTangent(double t) |
Curve2D |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in
reverse order.
|
Vector2D |
getRightTangent(double t) |
Collection<? extends SmoothCurve2D> |
getSmoothPieces()
Returns a set of smooth curves.
|
Curve2D |
getSubCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on
the curve.
|
boolean |
isClosed()
Return true if the curve makes a loop, that is come back to starting
point after covering the path.
|
Curve2D |
transform(AffineTransform2D trans)
Transforms the curve by an affine transform.
|
clone, draw, getAsAWTShape, getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty
boolean isClosed()
Vector2D getLeftTangent(double t)
Vector2D getRightTangent(double t)
Collection<? extends SmoothCurve2D> getSmoothPieces()
Polyline2D getAsPolyline(int n)
n
line segments. If the curve is closed, the method should return an
instance of Ring2D.n
- the number of line segmentsn
line segments.GeneralPath appendPath(GeneralPath path)
path
- a path to modifyCurve2D getReverseCurve()
Curve2D
getReverseCurve
in interface Curve2D
Curve2D getSubCurve(double t0, double t1)
Curve2D
getSubCurve
in interface Curve2D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curveCurveSet2D clip(Box2D box)
Curve2D
Curve2D transform(AffineTransform2D trans)
Curve2D
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.