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

java.lang.Objectmath.geom2d.domain.Boundary2DUtils
public abstract class Boundary2DUtils
Collects some useful methods for clipping curves.
| Constructor Summary | |
|---|---|
Boundary2DUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Boundary2DUtils()
| Method Detail |
|---|
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 portion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||