public class MinimumBoundingCircle extends Object
Geometry. The MBC is the smallest circle which
covers all the input points (this is also known as the
Smallest Enclosing Circle). This is equivalent to computing the Maximum Diameter of the input point set.
The computed circle can be specified in two equivalent ways, both of which are provide as output by this class:
Geometry which approximates the shape of the MBC (although as an approximation it is
not guaranteed to
cover all the input points.)
MinimumDiameter
| Constructor and Description |
|---|
MinimumBoundingCircle(Geometry
Creates a new object for computing the minimum bounding circle for the point set defined by the vertices of the given geometry.
|
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getCentre()
Gets the centre point of the computed Minimum Bounding Circle.
|
Geometry |
getCircle()
Gets a geometry which represents the Minimum Bounding Circle.
|
Geometry |
getDiameter()
Gets a geometry representing the diameter of the computed Minimum Bounding Circle.
|
Coordinate |
getExtremalPoints()
Gets the extremal points which define the computed Minimum Bounding Circle.
|
Geometry |
getFarthestPoints()
Gets a geometry representing a line between the two farthest points in the input.
|
double |
getRadius()
Gets the radius of the computed Minimum Bounding Circle.
|
public MinimumBoundingCircle(Geometrygeom)
geom - the geometry to use to obtain the point set
public GeometrygetCircle()
public GeometrygetFarthestPoints()
public GeometrygetDiameter()
public Coordinate[] getExtremalPoints()
public CoordinategetCentre()
public double getRadius()