|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Curve2D
Interface for all linear and pieces smooth curves : polylines, conics, lines ... A Curve2D object can be a continuous object (line, spiral, conic, ...), or the boundary of a Region. It can also be the union of several continuous curves.
Paramaterized curves are actually considered. Parameterization is left to the implementation.
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY, defaultClipWindow, EMPTY_SET |
| Method Summary | |
|---|---|
CurveSet2D<? extends Curve2D> |
clip(Box2D box)
When a curve is clipped, the result is a set of curves. |
java.util.Collection<? extends ContinuousCurve2D> |
getContinuousCurves()
Returns the collection of continuous curves which constitute this curve. |
Point2D |
getFirstPoint()
Get the first point of the curve. |
java.util.Collection<Point2D> |
getIntersections(StraightObject2D line)
Returns the intersection points of the curve with the specified line. |
Point2D |
getLastPoint()
Get the last point of the curve. |
Point2D |
getPoint(double t)
Gets the point from a parametric representation of the curve. |
Point2D |
getPoint(double t,
Point2D point)
Same as getPoint(t), but gives the point as a parameter. |
double |
getPosition(Point2D point)
Get position of the point on the curve. |
Curve2D |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
Curve2D |
getSubCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on the curve. |
double |
getT0()
Get value of parameter t for the first point of the curve. |
double |
getT1()
Get value of parameter t for the last point of the curve. |
double |
project(Point2D point)
Returns the position of the closest orthogonal projection of the point on the curve, or of the closest singular point. |
Curve2D |
transform(AffineTransform2D trans)
Transforms the curve by an affine transform. |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
getBoundingBox, getDistance, getDistance, isBounded |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Method Detail |
|---|
double getT0()
double getT1()
Point2D getPoint(double t)
Point2D getPoint(double t,
Point2D point)
Point2D getFirstPoint()
getPoint(getT0()).
Point2D getLastPoint()
getPoint(getT1()).
double getPosition(Point2D point)
point - a point belonging to the curve
double project(Point2D point)
point - a point to project
java.util.Collection<Point2D> getIntersections(StraightObject2D line)
Curve2D getReverseCurve()
java.util.Collection<? extends ContinuousCurve2D> getContinuousCurves()
Curve2D getSubCurve(double t0,
double t1)
t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
Curve2D transform(AffineTransform2D trans)
transform in interface Shape2Dtrans - an affine transform
CurveSet2D<? extends Curve2D> clip(Box2D box)
clip in interface Shape2Dbox - the clipping box
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||