|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.curve.CurveArray2D<T> math.geom2d.domain.ContourArray2D<T> math.geom2d.circulinear.CirculinearContourArray2D<T>
public class CirculinearContourArray2D<T extends CirculinearContour2D>
A circulinear boundary which is composed of several CirculinearContour2D.
Creates an array of circular contours:
Circle2D circle1 = new Circle2D(new Point2D(0, 100), 30);
Circle2D circle2 = new Circle2D(new Point2D(0, 100), 30);
CirculinearContourArray2D array =
CirculinearContourArray2D.create(new Circle2D[]{circle1, circle2});
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
CirculinearContourArray2D()
Empty constructor. |
|
CirculinearContourArray2D(java.util.Collection<? extends T> curves)
Constructor from a collection of curves. |
|
CirculinearContourArray2D(int n)
Empty constructor. |
|
CirculinearContourArray2D(T... curves)
Constructor from an array of curves. |
|
CirculinearContourArray2D(T curve)
Constructor from a single curve. |
Method Summary | ||
---|---|---|
CirculinearDomain2D |
buffer(double dist)
Computes the buffer of the shape, formed by the set of points located at a distance from the shape that is lower or equal to d. |
|
CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> |
clip(Box2D box)
Clip the curve by a box. |
|
java.util.Collection<T> |
continuousCurves()
Returns the collection of continuous curves which constitute this curve. |
|
static
|
create(java.util.Collection<T> curves)
Static factory for creating a new CirculinearContourArray2D from a collection of curves. |
|
static
|
create(T... curves)
Static factory for creating a new CirculinearContourArray2D from an array of curves. |
|
CirculinearDomain2D |
domain()
Returns the domain delimited by this boundary. |
|
double |
length()
|
|
double |
length(double pos)
|
|
CirculinearBoundary2D |
parallel(double d)
Creates a new curve, formed by the points with parameterization: p(t) = c(t) + d*n(t)/|n(t)| , with p(t) being a point of
the original curve, n(t) the normal of the curve, and |n| being the
norm of n. |
|
double |
position(double length)
|
|
CirculinearContourArray2D<? extends CirculinearContour2D> |
reverse()
Returns the curve with same trace on the plane with parameterization in reverse order. |
|
CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> |
subCurve(double t0,
double t1)
Return an instance of CurveArray2D. |
|
CirculinearContourArray2D<? extends CirculinearContour2D> |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
Methods inherited from class math.geom2d.domain.ContourArray2D |
---|
equals, fill, isInside, signedDistance, signedDistance, transform, windingAngle |
Methods inherited from class math.geom2d.curve.CurveArray2D |
---|
add, add, almostEquals, asAwtShape, boundingBox, childCurve, clear, clone, contains, contains, contains, curveIndex, curves, distance, distance, draw, firstCurve, firstPoint, get, getGeneralPath, getT0, getT1, globalPosition, indexOf, intersections, isBounded, isEmpty, isSingular, iterator, lastCurve, lastPoint, localPosition, point, position, project, remove, remove, singularPoints, size, t0, t1, vertices |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.domain.Boundary2D |
---|
fill, isInside, transform |
Methods inherited from interface math.geom2d.domain.OrientedCurve2D |
---|
signedDistance, signedDistance, windingAngle |
Methods inherited from interface math.geom2d.curve.Curve2D |
---|
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, vertices |
Methods inherited from interface math.geom2d.Shape2D |
---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
Methods inherited from interface math.geom2d.GeometricObject2D |
---|
almostEquals |
Constructor Detail |
---|
public CirculinearContourArray2D()
public CirculinearContourArray2D(int n)
public CirculinearContourArray2D(T... curves)
curves
- the array of curves in the setpublic CirculinearContourArray2D(T curve)
curve
- the initial contour contained in the arraypublic CirculinearContourArray2D(java.util.Collection<? extends T> curves)
curves
- the collection of curves to add to the setMethod Detail |
---|
public static <T extends CirculinearContour2D> CirculinearContourArray2D<T> create(java.util.Collection<T> curves)
public static <T extends CirculinearContour2D> CirculinearContourArray2D<T> create(T... curves)
public CirculinearDomain2D domain()
Boundary2D
domain
in interface CirculinearBoundary2D
domain
in interface Boundary2D
domain
in class ContourArray2D<T extends CirculinearContour2D>
public double length()
length
in interface CirculinearCurve2D
public double length(double pos)
length
in interface CirculinearCurve2D
public double position(double length)
position
in interface CirculinearCurve2D
public CirculinearDomain2D buffer(double dist)
CirculinearShape2D
buffer
in interface CirculinearShape2D
dist
- the maximal distance between a point of the buffer and the
shape
public CirculinearBoundary2D parallel(double d)
CirculinearCurve2D
p(t) = c(t) + d*n(t)/|n(t)|
, with p(t) being a point of
the original curve, n(t) the normal of the curve, and |n| being the
norm of n.
parallel
in interface CirculinearBoundary2D
parallel
in interface CirculinearCurve2D
d
- the distance between the original curve and he parallel curve.
public CirculinearContourArray2D<? extends CirculinearContour2D> transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearBoundary2D
transform
in interface CirculinearCurve2D
transform
in interface CirculinearShape2D
inv
- the circle inversion
public java.util.Collection<T> continuousCurves()
Curve2D
continuousCurves
in interface CirculinearBoundary2D
continuousCurves
in interface CirculinearCurve2D
continuousCurves
in interface Curve2D
continuousCurves
in interface Boundary2D
continuousCurves
in class ContourArray2D<T extends CirculinearContour2D>
public CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> clip(Box2D box)
ContourArray2D
clip
in interface CirculinearBoundary2D
clip
in interface CirculinearCurve2D
clip
in interface Curve2D
clip
in interface OrientedCurve2D
clip
in interface Shape2D
clip
in class ContourArray2D<T extends CirculinearContour2D>
box
- the clipping box
public CirculinearContourArray2D<? extends CirculinearContour2D> reverse()
Curve2D
reverse
in interface CirculinearBoundary2D
reverse
in interface CirculinearCurve2D
reverse
in interface Curve2D
reverse
in interface Boundary2D
reverse
in interface OrientedCurve2D
reverse
in class ContourArray2D<T extends CirculinearContour2D>
public CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> subCurve(double t0, double t1)
CurveArray2D
subCurve
in interface CirculinearCurve2D
subCurve
in interface Curve2D
subCurve
in class ContourArray2D<T extends CirculinearContour2D>
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |