|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.algorithm.MinimumBoundingCircle
public class MinimumBoundingCircle
Computes the Minimum Bounding Circle (MBC)
for the points in a 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
Coordinate |
getCentre()
Gets the centre point of the computed Minimum Bounding Circle. |
Geometry |
getCircle()
Gets a geometry which represents the Minimum Bounding Circle. |
Coordinate[] |
getExtremalPoints()
Gets the extremal points which define the computed Minimum Bounding Circle. |
double |
getRadius()
Gets the radius of the computed Minimum Bounding Circle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinimumBoundingCircle(Geometry geom)
geom
- the geometry to use to obtain the point setMethod Detail |
---|
public Geometry getCircle()
public Coordinate[] getExtremalPoints()
public Coordinate getCentre()
public double getRadius()
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |