|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContinuousCurve2D
Interface for all curves which can be drawn with one stroke. This includes closed curves (ellipses, polygon boundaries...), infinite curves (straight lines, parabolas, ...), and 'finite' curves, such as polylines, conic arcs, line segments, splines... Note that an hyperbola is compound of 2 continuous curves.
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()
.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Method Summary | |
---|---|
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. |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
clone, 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 |
Method Detail |
---|
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 segments
n
line segments.GeneralPath appendPath(GeneralPath path)
path
- a path to modify
Curve2D 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-curve
CurveSet2D clip(Box2D box)
Curve2D
clip
in interface Curve2D
clip
in interface Shape2D
box
- the clipping box
Curve2D transform(AffineTransform2D trans)
Curve2D
transform
in interface Curve2D
transform
in interface Shape2D
trans
- an affine transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |