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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Rectangle(Point lowerLeft, Point upperRight)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Rectangle` | `fromBoundingCircle(Coordinates centerCoordinates, 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(Coordinates centerCoordinates,
                                                     double radius)

      Compute appropriate bounding box on Earth with pole and prime meridian crossing checks
      Parameters:
        `centerCoordinates` - 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-2017 Red Hat, Inc. All Rights Reserved