public abstract class Boundary2DUtils extends Object
Constructor and Description |
---|
Boundary2DUtils() |
Modifier and Type | Method and Description |
---|---|
static BoundarySet2D<ContinuousBoundary2D> |
clipBoundary(Boundary2D boundary,
Box2D box)
Clips a boundary and closes the result curve.
|
static CurveSet2D<ContinuousOrientedCurve2D> |
clipContinuousOrientedCurve(ContinuousOrientedCurve2D curve,
Box2D box)
Clip a curve, and return a CurveSet2D.
|
static int |
findNextCurveIndex(double[] positions,
double pos) |
static Polyline2D |
getBoundaryPortion(Box2D box,
Point2D p0,
Point2D p1)
Extracts a portion of the boundary of a bounded box.
|
public static final CurveSet2D<ContinuousOrientedCurve2D> clipContinuousOrientedCurve(ContinuousOrientedCurve2D curve, Box2D box)
public static final BoundarySet2D<ContinuousBoundary2D> clipBoundary(Boundary2D boundary, Box2D box)
public static final int findNextCurveIndex(double[] positions, double pos)
public static final Polyline2D getBoundaryPortion(Box2D box, Point2D p0, Point2D p1)
box
- the box from which one extract a portion of boundaryp0
- the first point of the portionp1
- the last point of the portionCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.