math.geom2d.curve
Interface Domain2D

All Superinterfaces:
java.awt.Shape, Shape2D
All Known Subinterfaces:
PolygonalShape2D
All Known Implementing Classes:
Box2D, Disc2D, GenericDomain2D, HalfPlane2D, HRectangle2D, MultiPolygon2D, Polygon2D, Rectangle2D

public interface Domain2D
extends Shape2D

Interface for shapes that draws an 'interior' and an 'exterior'. A AbstractDomain2D can be defined with a non-self intersecting set of Curve2D, and contains all points lying 'on the left' of the parent curve.

Some Shape may seem very similar, for example Conic2D and ConicCurve2D. The reason is that a point can be contained in a Conic2D but not in the ConicCurve2D.


Field Summary
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY, defaultClipWindow, EMPTY_SET
 
Method Summary
 Boundary2D getBoundary()
          returns the boundary of the set.
 
Methods inherited from interface math.geom2d.Shape2D
clip, getBoundingBox, getDistance, getDistance, isBounded, transform
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
 

Method Detail

getBoundary

Boundary2D getBoundary()
returns the boundary of the set. This boundary is either a continuous non intersecting curve (connected domain), or a set of non intersecting continuous curve (one continuous non-intersection for each connected part of the domain).

The returned curve is oriented, with an interior and an exterior.

Returns:
the boundary of the domain