|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CurveSet2D<T extends Curve2D>
A parameterized set of curves. A curve cannot be included twice in a CurveSet2D.
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Method Summary | |
|---|---|
T |
childCurve(double t)
Returns the child curve corresponding to a given position. |
boolean |
contains(T curve)
Checks if the curve set contains the given curve. |
int |
curveIndex(double t)
Returns the index of the curve corresponding to a given position. |
java.util.Collection<T> |
curves()
Returns the collection of curves |
T |
firstCurve()
Returns the first curve of the collection if it exists, null otherwise. |
T |
get(int index)
Returns the inner curve corresponding to the given index. |
double |
globalPosition(int i,
double t)
Converts a position on a curve (between t0 and t1 of the curve) to the position on the curve set (between 0 and 2*Nc-1). |
T |
lastCurve()
Returns the last curve of the collection if it exists, null otherwise. |
double |
localPosition(double t)
Converts the position on the curve set, which is comprised between 0 and 2*Nc-1 with Nc being the number of curves, to the position on the curve which contains the position. |
CurveSet2D<? extends Curve2D> |
transform(AffineTransform2D trans)
Transforms each curve in the set and returns a new instance of CurveSet2D. |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
asAwtShape, clip, clone, continuousCurves, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, reverse, singularPoints, subCurve, t0, t1, vertices |
| Methods inherited from interface math.geom2d.ShapeSet2D |
|---|
add, add, clear, indexOf, remove, remove, size |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
| Methods inherited from interface math.geom2d.GeometricObject2D |
|---|
almostEquals |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
boolean contains(T curve)
contains in interface ShapeSet2D<T extends Curve2D>java.util.Collection<T> curves()
T get(int index)
get in interface ShapeSet2D<T extends Curve2D>index - index of the curve
T childCurve(double t)
t - the position on the set of curves, between 0 and twice the
number of curves
T firstCurve()
T lastCurve()
double localPosition(double t)
t - the position on the curve set
globalPosition(int, double),
curveIndex(double)
double globalPosition(int i,
double t)
i - the index of the curve to considert - the position on the curve
localPosition(double),
curveIndex(double)int curveIndex(double t)
t - the position on the set of curves, between 0 and twice the
number of curves minus 1
CurveSet2D<? extends Curve2D> transform(AffineTransform2D trans)
transform in interface Curve2Dtransform in interface Shape2Dtrans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||