|
||||||||||
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.curve.PolyCurve2D<T> math.geom2d.domain.PolyOrientedCurve2D<T> math.geom2d.circulinear.PolyCirculinearCurve2D<T>
public class PolyCirculinearCurve2D<T extends CirculinearContinuousCurve2D>
A continuous curve which is composed of several continuous circulinear curves.
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
PolyCirculinearCurve2D()
|
|
PolyCirculinearCurve2D(java.util.Collection<? extends T> curves)
|
|
PolyCirculinearCurve2D(java.util.Collection<? extends T> curves,
boolean closed)
|
|
PolyCirculinearCurve2D(int size)
|
|
PolyCirculinearCurve2D(T[] curves)
|
|
PolyCirculinearCurve2D(T[] curves,
boolean closed)
|
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)
Clips the PolyCurve2D by a box. |
|
java.util.Collection<? extends PolyCirculinearCurve2D<?>> |
continuousCurves()
Returns a collection of PolyCurve2D that contains only this instance. |
|
static
|
create(java.util.Collection<T> curves)
Static factory for creating a new PolyCirculinearCurve2D from a collection of curves. |
|
static
|
create(java.util.Collection<T> curves,
boolean closed)
Static factory for creating a new PolyCirculinearCurve2D from a collection of curves and a flag indicating if the curve is closed. |
|
static
|
create(T... curves)
Static factory for creating a new PolyCirculinearCurve2D from an array of curves. |
|
static
|
create(T[] curves,
boolean closed)
Static factory for creating a new PolyCirculinearCurve2D from an array of curves and a flag indicating if the curve is closed. |
|
static
|
createClosed(T... curves)
Static factory for creating a new PolyCirculinearCurve2D from an array of curves and a flag indicating if the curve is closed. |
|
double |
length()
|
|
double |
length(double pos)
|
|
CirculinearContinuousCurve2D |
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)
|
|
PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> |
reverse()
Returns the reverse curve of this PolyCurve2D. |
|
java.util.Collection<? extends CirculinearElement2D> |
smoothPieces()
Returns a collection containing only instances of SmoothCurve2D. |
|
PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> |
subCurve(double t0,
double t1)
Returns a portion of this curve as an instance of PolyOrientedCurve2D. |
|
PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
Methods inherited from class math.geom2d.domain.PolyOrientedCurve2D |
---|
equals, isInside, signedDistance, signedDistance, transform, windingAngle |
Methods inherited from class math.geom2d.curve.PolyCurve2D |
---|
appendPath, asPolyline, curvature, draw, getGeneralPath, isClosed, leftTangent, rightTangent, setClosed |
Methods inherited from class math.geom2d.curve.CurveArray2D |
---|
add, add, almostEquals, asAwtShape, boundingBox, childCurve, clear, clone, contains, contains, contains, curveIndex, curves, distance, distance, firstCurve, firstPoint, get, 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.ContinuousOrientedCurve2D |
---|
transform |
Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
---|
appendPath, asPolyline, curvature, isClosed, leftTangent, rightTangent |
Methods inherited from interface math.geom2d.domain.OrientedCurve2D |
---|
isInside, 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 PolyCirculinearCurve2D()
public PolyCirculinearCurve2D(int size)
public PolyCirculinearCurve2D(T[] curves)
public PolyCirculinearCurve2D(T[] curves, boolean closed)
public PolyCirculinearCurve2D(java.util.Collection<? extends T> curves)
public PolyCirculinearCurve2D(java.util.Collection<? extends T> curves, boolean closed)
Method Detail |
---|
public static <T extends CirculinearContinuousCurve2D> PolyCirculinearCurve2D<T> create(java.util.Collection<T> curves)
public static <T extends CirculinearContinuousCurve2D> PolyCirculinearCurve2D<T> create(T... curves)
public static <T extends CirculinearContinuousCurve2D> PolyCirculinearCurve2D<T> create(java.util.Collection<T> curves, boolean closed)
public static <T extends CirculinearContinuousCurve2D> PolyCirculinearCurve2D<T> create(T[] curves, boolean closed)
public static <T extends CirculinearContinuousCurve2D> PolyCirculinearCurve2D<T> createClosed(T... curves)
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 CirculinearContinuousCurve2D 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 CirculinearContinuousCurve2D
parallel
in interface CirculinearCurve2D
d
- the distance between the original curve and he parallel curve.
public PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearContinuousCurve2D
transform
in interface CirculinearCurve2D
transform
in interface CirculinearShape2D
inv
- the circle inversion
public java.util.Collection<? extends CirculinearElement2D> smoothPieces()
PolyCurve2D
smoothPieces
in interface CirculinearContinuousCurve2D
smoothPieces
in interface ContinuousCurve2D
smoothPieces
in class PolyCurve2D<T extends CirculinearContinuousCurve2D>
public java.util.Collection<? extends PolyCirculinearCurve2D<?>> continuousCurves()
PolyCurve2D
continuousCurves
in interface CirculinearCurve2D
continuousCurves
in interface Curve2D
continuousCurves
in class PolyCurve2D<T extends CirculinearContinuousCurve2D>
public CirculinearCurveSet2D<? extends CirculinearContinuousCurve2D> clip(Box2D box)
PolyOrientedCurve2D
clip
in interface CirculinearContinuousCurve2D
clip
in interface CirculinearCurve2D
clip
in interface ContinuousCurve2D
clip
in interface Curve2D
clip
in interface ContinuousOrientedCurve2D
clip
in interface OrientedCurve2D
clip
in interface Shape2D
clip
in class PolyOrientedCurve2D<T extends CirculinearContinuousCurve2D>
box
- the clipping box
public PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> reverse()
PolyCurve2D
reverse
in interface CirculinearContinuousCurve2D
reverse
in interface CirculinearCurve2D
reverse
in interface ContinuousCurve2D
reverse
in interface Curve2D
reverse
in interface ContinuousOrientedCurve2D
reverse
in interface OrientedCurve2D
reverse
in class PolyOrientedCurve2D<T extends CirculinearContinuousCurve2D>
public PolyCirculinearCurve2D<? extends CirculinearContinuousCurve2D> subCurve(double t0, double t1)
PolyOrientedCurve2D
subCurve
in interface CirculinearContinuousCurve2D
subCurve
in interface CirculinearCurve2D
subCurve
in interface ContinuousCurve2D
subCurve
in interface Curve2D
subCurve
in interface ContinuousOrientedCurve2D
subCurve
in class PolyOrientedCurve2D<T extends CirculinearContinuousCurve2D>
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 |