math.geom2d.circulinear
Class GenericCirculinearDomain2D

java.lang.Object
  extended by math.geom2d.domain.GenericDomain2D
      extended by math.geom2d.circulinear.GenericCirculinearDomain2D
All Implemented Interfaces:
CirculinearDomain2D, CirculinearShape2D, Domain2D, GeometricObject2D, Shape2D

public class GenericCirculinearDomain2D
extends GenericDomain2D
implements CirculinearDomain2D

A specialization of GenericDomain2D, whose boundary is constrained to be circulinear.

Author:
dlegland

Field Summary
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY
 
Constructor Summary
GenericCirculinearDomain2D(CirculinearBoundary2D boundary)
           
 
Method Summary
 CirculinearBoundary2D boundary()
          Returns the boundary of the set.
 CirculinearDomain2D buffer(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.
 CirculinearDomain2D complement()
          Returns the domain which complements this domain in the plane.
 java.util.Collection<? extends CirculinearContour2D> contours()
          Returns the set of contours that enclose this domain.
static GenericCirculinearDomain2D create(CirculinearBoundary2D boundary)
           
 java.lang.String toString()
           
 CirculinearDomain2D transform(CircleInversion2D inv)
          Transforms the shape by a circle inversion.
 
Methods inherited from class math.geom2d.domain.GenericDomain2D
almostEquals, asPolygon, boundingBox, clip, contains, contains, create, distance, distance, draw, equals, fill, isBounded, isEmpty, transform
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface math.geom2d.domain.Domain2D
asPolygon, clip, draw, fill, transform
 
Methods inherited from interface math.geom2d.Shape2D
boundingBox, contains, contains, distance, distance, isBounded, isEmpty
 
Methods inherited from interface math.geom2d.GeometricObject2D
almostEquals
 

Constructor Detail

GenericCirculinearDomain2D

public GenericCirculinearDomain2D(CirculinearBoundary2D boundary)
Method Detail

create

public static GenericCirculinearDomain2D create(CirculinearBoundary2D boundary)

boundary

public CirculinearBoundary2D boundary()
Description copied from interface: Domain2D
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.

Specified by:
boundary in interface CirculinearDomain2D
Specified by:
boundary in interface Domain2D
Overrides:
boundary in class GenericDomain2D
Returns:
the boundary of the domain

contours

public java.util.Collection<? extends CirculinearContour2D> contours()
Description copied from interface: Domain2D
Returns the set of contours that enclose this domain. The result is a collection of shapes that implement the Contour2D interface.

Specified by:
contours in interface CirculinearDomain2D
Specified by:
contours in interface Domain2D
Overrides:
contours in class GenericDomain2D
See Also:
Contour2D

complement

public CirculinearDomain2D complement()
Description copied from interface: Domain2D
Returns the domain which complements this domain in the plane.

Specified by:
complement in interface CirculinearDomain2D
Specified by:
complement in interface Domain2D
Overrides:
complement in class GenericDomain2D
Returns:
the complement of this domain.

buffer

public CirculinearDomain2D buffer(double dist)
Description copied from interface: CirculinearShape2D
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.

Specified by:
buffer in interface CirculinearShape2D
Parameters:
dist - the maximal distance between a point of the buffer and the shape
Returns:
the buffer of the shape

transform

public CirculinearDomain2D transform(CircleInversion2D inv)
Description copied from interface: CirculinearShape2D
Transforms the shape by a circle inversion. The result is still an instance a CirculinearShape2D.

Specified by:
transform in interface CirculinearDomain2D
Specified by:
transform in interface CirculinearShape2D
Parameters:
inv - the circle inversion
Returns:
the transformed shape

toString

public java.lang.String toString()
Overrides:
toString in class GenericDomain2D