#include <MinimumBoundingCircle.h>
Definition at line 42 of file MinimumBoundingCircle.h.
geos::algorithm::MinimumBoundingCircle::MinimumBoundingCircle |
( |
const geom::Geometry * |
geom | ) |
|
|
inline |
geos::algorithm::MinimumBoundingCircle::~MinimumBoundingCircle |
( |
| ) |
|
|
inline |
void geos::algorithm::MinimumBoundingCircle::compute |
( |
| ) |
|
|
private |
void geos::algorithm::MinimumBoundingCircle::computeCentre |
( |
| ) |
|
|
private |
void geos::algorithm::MinimumBoundingCircle::computeCirclePoints |
( |
| ) |
|
|
private |
Gets the centre point of the computed Minimum Bounding Circle.
- Returns
- the centre point of the Minimum Bounding Circle
-
null if the input is empty
std::unique_ptr<geom::Geometry> geos::algorithm::MinimumBoundingCircle::getCircle |
( |
| ) |
|
Gets a geometry which represents the Minimum Bounding Circle. If the input is degenerate (empty or a single unique point), this method will return an empty geometry or a single Point geometry. Otherwise, a Polygon will be returned which approximates the Minimum Bounding Circle. (Note that because the computed polygon is only an approximation, it may not precisely contain all the input points.)
- Returns
- a Geometry representing the Minimum Bounding Circle.
std::unique_ptr<geom::Geometry> geos::algorithm::MinimumBoundingCircle::getDiameter |
( |
| ) |
|
Gets a geometry representing the diameter of the computed Minimum Bounding Circle.
- Returns
- the diameter LineString of the Minimum Bounding Circle
-
a empty LineString if the input is empty
-
a Point if the input is a point
std::vector<geom::Coordinate> geos::algorithm::MinimumBoundingCircle::getExtremalPoints |
( |
| ) |
|
Gets the extremal points which define the computed Minimum Bounding Circle. There may be zero, one, two or three of these points, depending on the number of points in the input and the geometry of those points.
- Returns
- the points defining the Minimum Bounding Circle
std::unique_ptr<geom::Geometry> geos::algorithm::MinimumBoundingCircle::getMaximumDiameter |
( |
| ) |
|
Gets a geometry representing a line between the two farthest points in the input. These points will be two of the extremal points of the Minimum Bounding Circle. They also lie on the convex hull of the input.
- Returns
- a LineString between the two farthest points of the input
-
a empty LineString if the input is empty
-
a Point if the input is a point
double geos::algorithm::MinimumBoundingCircle::getRadius |
( |
| ) |
|
Gets the radius of the computed Minimum Bounding Circle.
- Returns
- the radius of the Minimum Bounding Circle
std::vector<geom::Coordinate> geos::algorithm::MinimumBoundingCircle::extremalPts |
|
private |
double geos::algorithm::MinimumBoundingCircle::radius |
|
private |
The documentation for this class was generated from the following file: