public class LatLonPointRadius extends Object
Constructor and Description |
---|
LatLonPointRadius(DirectPosition center,
double radius)
Creates a representation of point-radius search region.
|
Modifier and Type | Method and Description |
---|---|
DirectPosition2D[] |
getCircularRegionApproximation(int numberOfPoints)
Gets the circular region approximation on the earth surface using haversine
formula.
|
Rectangle2D |
getRectangularRegionApproximation(int numberOfPoints)
Calculates the rectangular region enclosing the circular search region.
|
public LatLonPointRadius(DirectPosition center, double radius)
center
- the center of the search regionradius
- the radius of the search regionpublic DirectPosition2D[] getCircularRegionApproximation(int numberOfPoints)
numberOfPoints
- the number of points used to estimate the circular regionpublic Rectangle2D getRectangularRegionApproximation(int numberOfPoints)
numberOfPoints
- the number of points used to estimate the circular search regionCopyright © 2010–2017 The Apache Software Foundation. All rights reserved.