org.hibernate.search.spatial.impl
Class Rectangle

java.lang.Object
  extended by org.hibernate.search.spatial.impl.Rectangle

public final class Rectangle
extends Object

Bounding box for search area on Earth

Author:
Nicolas Helleringer , Mathieu Perez

Constructor Summary
Rectangle(Point lowerLeft, Point upperRight)
           
 
Method Summary
static Rectangle fromBoundingCircle(Point center, double radius)
          Compute appropriate bounding box on Earth with pole and prime meridian crossing checks
 Point getLowerLeft()
           
 Point getUpperRight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rectangle

public Rectangle(Point lowerLeft,
                 Point upperRight)
Method Detail

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 area
radius - 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