|
||||||||||
| 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.BoundarySet2D<T>
public class BoundarySet2D<T extends ContinuousBoundary2D>
A BoundarySet2D is a set of continuous oriented curves. Each curve of the set defines its own domain.
| Field Summary |
|---|
| Fields inherited from class math.geom2d.curve.CurveSet2D |
|---|
curves |
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY, defaultClipWindow, EMPTY_SET |
| Constructor Summary | |
|---|---|
BoundarySet2D()
|
|
BoundarySet2D(java.util.Collection<? extends T> curves)
|
|
BoundarySet2D(T curve)
|
|
BoundarySet2D(T[] curves)
|
|
| Method Summary | |
|---|---|
CurveSet2D<? extends ContinuousOrientedCurve2D> |
clip(Box2D box)
Clip the curve by a box. |
java.util.Collection<ContinuousBoundary2D> |
getBoundaryCurves()
Return the different continuous curves composing the boundary |
BoundarySet2D<? extends ContinuousBoundary2D> |
getReverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
double |
getSignedDistance(double x,
double y)
The same as getSignedDistance(Point2D), but by passing 2 double as arguments. |
double |
getSignedDistance(java.awt.geom.Point2D p)
Get the signed distance of the curve to the given point : this distance is positive if the point lies outside the shape, and is negative if the point lies inside the shape. |
CurveSet2D<? extends ContinuousOrientedCurve2D> |
getSubCurve(double t0,
double t1)
Return an instance of CurveSet2D. |
double |
getWindingAngle(java.awt.geom.Point2D point)
Return the angle portion that the curve turn around the given point. |
boolean |
isInside(java.awt.geom.Point2D point)
return true if the point is 'inside' the domain bounded by the curve. |
BoundarySet2D<? extends ContinuousBoundary2D> |
transform(AffineTransform2D trans)
Transform each curve, and build a new CurveSet2D with the set of transformed curves. |
| Methods inherited from class math.geom2d.curve.CurveSet2D |
|---|
addCurve, clearCurves, contains, contains, contains, contains, equals, fromUnitSegment, getBoundingBox, getBounds, getBounds2D, getContinuousCurves, getCurveNumber, getCurves, getDistance, getDistance, getFirstCurve, getFirstPoint, getGeneralPath, getIntersections, getLastCurve, getLastPoint, getPathIterator, getPathIterator, getPoint, getPoint, getPosition, getT0, getT1, intersects, intersects, isBounded, isEmpty, iterator, project, removeCurve, toUnitSegment |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
getContinuousCurves, getFirstPoint, getIntersections, getLastPoint, getPoint, getPoint, getPosition, getT0, getT1, project |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
getBoundingBox, getDistance, getDistance, isBounded |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
| Constructor Detail |
|---|
public BoundarySet2D()
public BoundarySet2D(T[] curves)
public BoundarySet2D(java.util.Collection<? extends T> curves)
public BoundarySet2D(T curve)
| Method Detail |
|---|
public double getWindingAngle(java.awt.geom.Point2D point)
OrientedCurve2D
getWindingAngle in interface OrientedCurve2Dpoint - a point of the plane
public double getSignedDistance(java.awt.geom.Point2D p)
OrientedCurve2D
getSignedDistance in interface OrientedCurve2Dp - a point of the plane
public java.util.Collection<ContinuousBoundary2D> getBoundaryCurves()
Boundary2D
getBoundaryCurves in interface Boundary2D
public double getSignedDistance(double x,
double y)
OrientedCurve2D
getSignedDistance in interface OrientedCurve2Dx - x-coord of a pointy - y-coord of a point
public boolean isInside(java.awt.geom.Point2D point)
OrientedCurve2D
isInside in interface OrientedCurve2Dpoint - a point in the plane
public BoundarySet2D<? extends ContinuousBoundary2D> getReverseCurve()
Curve2D
getReverseCurve in interface Boundary2DgetReverseCurve in interface Curve2DgetReverseCurve in interface OrientedCurve2DgetReverseCurve in class CurveSet2D<T extends ContinuousBoundary2D>
public CurveSet2D<? extends ContinuousOrientedCurve2D> getSubCurve(double t0,
double t1)
CurveSet2D
getSubCurve in interface Curve2DgetSubCurve in class CurveSet2D<T extends ContinuousBoundary2D>t0 - position of the start of the sub-curvet1 - position of the end of the sub-curve
public CurveSet2D<? extends ContinuousOrientedCurve2D> clip(Box2D box)
clip in interface Curve2Dclip in interface OrientedCurve2Dclip in interface Shape2Dclip in class CurveSet2D<T extends ContinuousBoundary2D>box - the clipping box
public BoundarySet2D<? extends ContinuousBoundary2D> transform(AffineTransform2D trans)
CurveSet2D
transform in interface Boundary2Dtransform in interface Curve2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtransform in class CurveSet2D<T extends ContinuousBoundary2D>trans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||