|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectmath.geom2d.curve.CurveSet2D<T>
math.geom2d.curve.CurveArray2D<T>
math.geom2d.circulinear.CirculinearCurveSet2D<T>
public class CirculinearCurveSet2D<T extends CirculinearCurve2D>
An specialisation of CurveSet2D that accepts only instances of CirculinearCurve2D.
| Field Summary |
|---|
| Fields inherited from class math.geom2d.curve.CurveSet2D |
|---|
curves |
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Constructor Summary | |
|---|---|
CirculinearCurveSet2D()
Empty constructor. |
|
CirculinearCurveSet2D(Collection<? extends T> curves)
Constructor from a collection of curves. |
|
CirculinearCurveSet2D(int n)
Empty constructor. |
|
CirculinearCurveSet2D(T[] curves)
Constructor from an array of curves. |
|
| Method Summary | |
|---|---|
CirculinearCurveSet2D<? extends CirculinearCurve2D> |
clip(Box2D box)
Clips a curve, and return a CurveArray2D. |
CirculinearDomain2D |
getBuffer(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. |
Collection<? extends CirculinearContinuousCurve2D> |
getContinuousCurves()
Returns the collection of continuous curves which constitute this curve. |
double |
getLength()
|
double |
getLength(double pos)
|
CirculinearCurve2D |
getParallel(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.In the case of a continuous curve formed by several smooth circulinear elements, the parallels of contiguous elements are joined by a circle arc. |
double |
getPosition(double length)
|
CirculinearCurveSet2D<? extends CirculinearCurve2D> |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
CirculinearCurveSet2D<? extends CirculinearCurve2D> |
getSubCurve(double t0,
double t1)
Return an instance of CurveArray2D. |
CirculinearCurveSet2D<CirculinearCurve2D> |
transform(CircleInversion2D inv)
Transforms the shape by a circle inversion. |
| Methods inherited from class math.geom2d.curve.CurveArray2D |
|---|
addCurve, clearCurves, clone, contains, contains, containsCurve, draw, equals, getAsAWTShape, getBoundingBox, getChildCurve, getCurve, getCurveIndex, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getGeneralPath, getGlobalPosition, getIntersections, getLastCurve, getLastPoint, getLocalPosition, getPoint, getPosition, getSingularPoints, getT0, getT1, isBounded, isEmpty, isSingular, iterator, project, removeCurve, transform |
| Methods inherited from class math.geom2d.curve.CurveSet2D |
|---|
fromUnitSegment, toUnitSegment |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
clone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project, transform |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
contains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmpty |
| Constructor Detail |
|---|
public CirculinearCurveSet2D()
public CirculinearCurveSet2D(int n)
public CirculinearCurveSet2D(T[] curves)
curves - the array of curves in the setpublic CirculinearCurveSet2D(Collection<? extends T> curves)
curves - the collection of curves to add to the set| Method Detail |
|---|
public double getLength()
getLength in interface CirculinearCurve2Dpublic double getLength(double pos)
getLength in interface CirculinearCurve2Dpublic double getPosition(double length)
getPosition in interface CirculinearCurve2Dpublic CirculinearDomain2D getBuffer(double dist)
CirculinearShape2D
getBuffer in interface CirculinearShape2Ddist - the maximal distance between a point of the buffer and the
shape
public CirculinearCurve2D getParallel(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.
getParallel in interface CirculinearCurve2Dd - the distance between the original curve and he parallel curve.
public CirculinearCurveSet2D<CirculinearCurve2D> transform(CircleInversion2D inv)
CirculinearShape2D
transform in interface CirculinearCurve2Dtransform in interface CirculinearShape2Dinv - the circle inversion
public Collection<? extends CirculinearContinuousCurve2D> getContinuousCurves()
Curve2D
getContinuousCurves in interface CirculinearCurve2DgetContinuousCurves in interface Curve2DgetContinuousCurves in class CurveArray2D<T extends CirculinearCurve2D>public CirculinearCurveSet2D<? extends CirculinearCurve2D> clip(Box2D box)
CurveArray2D
clip in interface CirculinearCurve2Dclip in interface Curve2Dclip in interface Shape2Dclip in class CurveArray2D<T extends CirculinearCurve2D>box - the clipping box
public CirculinearCurveSet2D<? extends CirculinearCurve2D> getSubCurve(double t0,
double t1)
CurveArray2D
getSubCurve in interface CirculinearCurve2DgetSubCurve in interface Curve2DgetSubCurve in class CurveArray2D<T extends CirculinearCurve2D>t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
public CirculinearCurveSet2D<? extends CirculinearCurve2D> getReverseCurve()
Curve2D
getReverseCurve in interface CirculinearCurve2DgetReverseCurve in interface Curve2DgetReverseCurve in class CurveArray2D<T extends CirculinearCurve2D>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||