|
||||||||||
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.circulinear.CirculinearCurveArray2D<T>
public class CirculinearCurveArray2D<T extends CirculinearCurve2D>
A specialization of CurveArray2D that accepts only instances of CirculinearCurve2D.
// create two orthogonal lines StraightLine2D line1 = new StraightLine2D(origin, v1); StraightLine2D line2 = new StraightLine2D(origin, v2); // put lines in a set CirculinearCurveSet2D<StraightLine2D> set = CirculinearCurveArray2D.create(line1, line2);
Field Summary |
---|
Fields inherited from interface math.geom2d.Shape2D |
---|
ACCURACY |
Constructor Summary | |
---|---|
CirculinearCurveArray2D()
Empty constructor. |
|
CirculinearCurveArray2D(java.util.Collection<? extends T> curves)
Constructor from a collection of curves. |
|
CirculinearCurveArray2D(int n)
Empty constructor. |
|
CirculinearCurveArray2D(T... curves)
Constructor from an array of curves. |
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. |
|
CirculinearCurveArray2D<? extends CirculinearCurve2D> |
clip(Box2D box)
Clips a curve, and return a CurveArray2D. |
|
java.util.Collection<? extends CirculinearContinuousCurve2D> |
continuousCurves()
Returns the collection of continuous curves which constitute this curve. |
|
static
|
create(java.util.Collection<T> curves)
Static factory for creating a new CirculinearCurveArray2D from a collection of curves. |
|
static
|
create(T... curves)
Static factory for creating a new CirculinearCurveArray2D from an array of curves. |
|
double |
length()
|
|
double |
length(double pos)
|
|
CirculinearCurve2D |
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)
|
|
CirculinearCurveArray2D<? extends CirculinearCurve2D> |
reverse()
Returns the curve with same trace on the plane with parameterization in reverse order. |
|
CirculinearCurveArray2D<? extends CirculinearCurve2D> |
subCurve(double t0,
double t1)
Return an instance of CurveArray2D. |
|
CirculinearCurveArray2D<CirculinearCurve2D> |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
Methods inherited from class math.geom2d.curve.CurveArray2D |
---|
add, add, almostEquals, asAwtShape, boundingBox, childCurve, clear, clone, contains, contains, contains, curveIndex, curves, distance, distance, draw, equals, 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, transform, vertices |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface math.geom2d.curve.CurveSet2D |
---|
childCurve, contains, curveIndex, curves, firstCurve, get, globalPosition, lastCurve, localPosition, transform |
Methods inherited from interface math.geom2d.ShapeSet2D |
---|
add, add, clear, indexOf, remove, remove, size |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
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 CirculinearCurveArray2D()
public CirculinearCurveArray2D(int n)
public CirculinearCurveArray2D(T... curves)
curves
- the array of curves in the setpublic CirculinearCurveArray2D(java.util.Collection<? extends T> curves)
curves
- the collection of curves to add to the setMethod Detail |
---|
public static <T extends CirculinearCurve2D> CirculinearCurveArray2D<T> create(java.util.Collection<T> curves)
public static <T extends CirculinearCurve2D> CirculinearCurveArray2D<T> create(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 CirculinearCurve2D 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 CirculinearCurve2D
d
- the distance between the original curve and he parallel curve.
public CirculinearCurveArray2D<CirculinearCurve2D> transform(CircleInversion2D inv)
CirculinearShape2D
transform
in interface CirculinearCurve2D
transform
in interface CirculinearShape2D
inv
- the circle inversion
public java.util.Collection<? extends CirculinearContinuousCurve2D> continuousCurves()
Curve2D
continuousCurves
in interface CirculinearCurve2D
continuousCurves
in interface Curve2D
continuousCurves
in class CurveArray2D<T extends CirculinearCurve2D>
public CirculinearCurveArray2D<? extends CirculinearCurve2D> clip(Box2D box)
CurveArray2D
clip
in interface CirculinearCurve2D
clip
in interface CirculinearCurveSet2D<T extends CirculinearCurve2D>
clip
in interface Curve2D
clip
in interface Shape2D
clip
in class CurveArray2D<T extends CirculinearCurve2D>
box
- the clipping box
public CirculinearCurveArray2D<? extends CirculinearCurve2D> subCurve(double t0, double t1)
CurveArray2D
subCurve
in interface CirculinearCurve2D
subCurve
in interface CirculinearCurveSet2D<T extends CirculinearCurve2D>
subCurve
in interface Curve2D
subCurve
in class CurveArray2D<T extends CirculinearCurve2D>
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
public CirculinearCurveArray2D<? extends CirculinearCurve2D> reverse()
Curve2D
reverse
in interface CirculinearCurve2D
reverse
in interface CirculinearCurveSet2D<T extends CirculinearCurve2D>
reverse
in interface Curve2D
reverse
in class CurveArray2D<T extends CirculinearCurve2D>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |