public class CirculinearCurveSet2D<T extends CirculinearCurve2D> extends CurveArray2D<T> implements CirculinearCurve2D
curves| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, transformfromUnitSegment, toUnitSegmentfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, draw, getAsAWTShape, getFirstPoint, getIntersections, getLastPoint, getPoint, getPosition, getSingularPoints, getT0, getT1, isSingular, project, transformcontains, contains, getBoundingBox, getDistance, getDistance, isBounded, isEmptypublic 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 setpublic 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)
CirculinearShape2DgetBuffer in interface CirculinearShape2Ddist - the maximal distance between a point of the buffer and the
shapepublic 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)
CirculinearShape2Dtransform in interface CirculinearCurve2Dtransform in interface CirculinearShape2Dinv - the circle inversionpublic Collection<? extends CirculinearContinuousCurve2D> getContinuousCurves()
Curve2DgetContinuousCurves in interface CirculinearCurve2DgetContinuousCurves in interface Curve2DgetContinuousCurves in class CurveArray2D<T extends CirculinearCurve2D>public CirculinearCurveSet2D<? extends CirculinearCurve2D> clip(Box2D box)
CurveArray2Dclip in interface CirculinearCurve2Dclip in interface Curve2Dclip in interface Shape2Dclip in class CurveArray2D<T extends CirculinearCurve2D>box - the clipping boxpublic CirculinearCurveSet2D<? extends CirculinearCurve2D> getSubCurve(double t0, double t1)
CurveArray2DgetSubCurve 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-curvepublic CirculinearCurveSet2D<? extends CirculinearCurve2D> getReverseCurve()
Curve2DgetReverseCurve in interface CirculinearCurve2DgetReverseCurve in interface Curve2DgetReverseCurve in class CurveArray2D<T extends CirculinearCurve2D>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.