org.hibernate.search.spatial.impl
Class Rectangle
java.lang.Object
org.hibernate.search.spatial.impl.Rectangle
public final class Rectangle
- extends Object
Bounding box for search area on Earth
- Author:
- Nicolas Helleringer , Mathieu Perez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rectangle
public Rectangle(Point lowerLeft,
Point upperRight)
fromBoundingCircle
public static Rectangle fromBoundingCircle(Point center,
double radius)
- Compute appropriate bounding box on Earth with pole and prime meridian crossing checks
- Parameters:
center
- of the search arearadius
- of the search area
- Returns:
- a bounding box for the area
- See Also:
- Bouding box on Earth calculation
getLowerLeft
public Point getLowerLeft()
getUpperRight
public Point getUpperRight()
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved