public class MinimumBoundingCircle
extends java.lang.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 | Description |
---|---|
MinimumBoundingCircle(Geometry geom) |
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 | 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(Geometry geom)
geom
- the geometry to use to obtain the point setpublic Geometry getCircle()
public Geometry getFarthestPoints()
public Geometry getDiameter()
public Coordinate[] getExtremalPoints()
public Coordinate getCentre()
public double getRadius()
Copyright © 2018. All rights reserved.