public static class BoundingCircle.Impl extends java.lang.Object implements BoundingCircle
BoundingCircle.Impl
Constructor and Description |
---|
BoundingCircle.Impl(Geo[] gs) |
BoundingCircle.Impl(GeoArray arrayPoints) |
BoundingCircle.Impl(Geo center,
double radius) |
BoundingCircle.Impl(GeoPath path) |
Modifier and Type | Method and Description |
---|---|
static BoundingCircle |
createFromLatLonDegrees(double[] latlons) |
static BoundingCircle |
createFromLatLonDegrees(float[] latlons) |
static BoundingCircle |
createFromLatLonRadians(double[] latlons) |
static BoundingCircle |
createFromLatLonRadians(float[] latlons) |
Geo |
getCenter()
Returns a Geo representing the center of the circle.
|
double |
getRadius() |
protected void |
init(Geo[] region)
Works by computing the centroid, then finding the
largest radius.
|
protected void |
init(GeoArray region)
Works by computing the centroid, then finding the
largest radius.
|
protected void |
init(Geo center,
double radius) |
boolean |
intersects(BoundingCircle bc) |
boolean |
intersects(Geo g,
double r) |
java.lang.String |
toString() |
public BoundingCircle.Impl(Geo center, double radius)
public BoundingCircle.Impl(GeoArray arrayPoints)
public BoundingCircle.Impl(GeoPath path)
public BoundingCircle.Impl(Geo[] gs)
protected void init(Geo[] region)
protected void init(GeoArray region)
protected void init(Geo center, double radius)
public final Geo getCenter()
BoundingCircle
getCenter
in interface BoundingCircle
public final double getRadius()
getRadius
in interface BoundingCircle
public boolean intersects(BoundingCircle bc)
intersects
in interface BoundingCircle
public boolean intersects(Geo g, double r)
intersects
in interface BoundingCircle
public java.lang.String toString()
toString
in class java.lang.Object
public static BoundingCircle createFromLatLonDegrees(double[] latlons)
public static BoundingCircle createFromLatLonDegrees(float[] latlons)
public static BoundingCircle createFromLatLonRadians(double[] latlons)
public static BoundingCircle createFromLatLonRadians(float[] latlons)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details