public interface CelestialCoordinate extends Serializable
Interface for celestial coordinates. Provides the greatCircleDistance and the conversion from ZonedDateTime to Greenwich Sidereal Time
| Modifier and Type | Field and Description |
|---|---|
static ZonedDateTime |
gstReferenceDateTime |
| Modifier and Type | Method and Description |
|---|---|
static double |
datetimeToGST(ZonedDateTime datetime)
Convert a DateTime object to Greenwich Sidereal Time according to
https://en.wikipedia.org/wiki/Sidereal_time#Definition
|
static double |
greatCircleDistanceDeg(double lat1,
double lon1,
double lat2,
double lon2) |
static double |
greatCircleDistanceRad(double lat1,
double lon1,
double lat2,
double lon2)
Great circle distance using the more complicated but numerically more
stable version of wikipedia (special case of the Vincenty formula)
https://en.wikipedia.org/wiki/Great-circle_distance
|
static final ZonedDateTime gstReferenceDateTime
static double greatCircleDistanceRad(double lat1,
double lon1,
double lat2,
double lon2)
lat1 - Latitude of first pointlon1 - Longitude of first pointlat2 - Latitude of second pointlon2 - Longitude of second pointstatic double greatCircleDistanceDeg(double lat1,
double lon1,
double lat2,
double lon2)
static double datetimeToGST(ZonedDateTime datetime)
datetime - Copyright © 2019. All rights reserved.