|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.spatial.impl.Point
public final class Point
Normalized latitude,longitude holder (in [-90;90],[-180,180]) with distance and destination computations methods
| Method Summary | |
|---|---|
Point |
computeDestination(double distance,
double heading)
Calculate end of travel point |
static Point |
fromDegrees(double latitude,
double longitude)
|
static Point |
fromDegreesInclusive(double latitude,
double longitude)
|
static Point |
fromRadians(double latitude,
double longitude)
|
double |
getDistanceTo(double latitude,
double longitude)
Compute distance point and other location given by its latitude and longitude in decimal degrees |
double |
getDistanceTo(Point other)
Compute distance between two points |
Double |
getLatitude()
|
double |
getLatitudeRad()
|
Double |
getLongitude()
|
double |
getLongitudeRad()
|
static double |
normalizeLatitude(double latitude)
|
static double |
normalizeLongitude(double longitude)
|
static double |
normalizeLongitudeInclusive(double longitude)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Point fromDegrees(double latitude,
double longitude)
latitude - in degreeslongitude - in degrees
public static Point fromDegreesInclusive(double latitude,
double longitude)
latitude - in degreeslongitude - in degrees
public static double normalizeLongitude(double longitude)
longitude - in degrees
public static double normalizeLongitudeInclusive(double longitude)
longitude - in degrees
public static double normalizeLatitude(double latitude)
latitude - in degrees
public static Point fromRadians(double latitude,
double longitude)
latitude - in radianslongitude - in radians
public Point computeDestination(double distance,
double heading)
distance - to travelheading - of travel in decimal degree
public double getDistanceTo(Point other)
other - a Point object.
public final double getDistanceTo(double latitude,
double longitude)
latitude - in decimal degreeslongitude - in decimal degreespublic Double getLatitude()
getLatitude in interface Coordinatespublic Double getLongitude()
getLongitude in interface Coordinatespublic double getLatitudeRad()
public double getLongitudeRad()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||