Package | Description |
---|---|
org.hibernate.search.spatial.impl |
Modifier and Type | Field and Description |
---|---|
static Point |
GeometricConstants.NORTH_POLE |
static Point |
GeometricConstants.SOUTH_POLE |
Modifier and Type | Method and Description |
---|---|
Point |
Point.computeDestination(double distance,
double heading)
Calculate end of travel point
|
static Point |
Point.fromCoordinates(Coordinates center) |
static Point |
Point.fromDegrees(double latitude,
double longitude) |
static Point |
Point.fromDegreesInclusive(double latitude,
double longitude) |
static Point |
Point.fromRadians(double latitude,
double longitude) |
Point |
Rectangle.getLowerLeft() |
Point |
Rectangle.getUpperRight() |
Modifier and Type | Method and Description |
---|---|
double |
Point.getDistanceTo(Point other)
Compute distance between two points
|
static String |
SpatialHelper.getSpatialHashCellId(Point point,
int spatialHashLevel)
Generate a spatial hash cell id (with both cell index on both dimension in it) for a position
|
static List<String> |
SpatialHelper.getSpatialHashCellsIds(Point lowerLeft,
Point upperRight,
int spatialHashLevel)
Generate a spatial hash cell ids list covered by a bounding box
|
static double[] |
SpatialHelper.projectToIndexSpace(Point point)
Project a degree latitude/longitude point into a sinusoidal projection planar space for spatial hash cell ids
computation
|
Constructor and Description |
---|
DistanceComparator(Point center,
int numHits,
String fieldName) |
Rectangle(Point lowerLeft,
Point upperRight) |
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved