public class HorizontalCoordinate extends Object implements CelestialCoordinate
Provides a method to transform into the equatorial and camera frame.
Created by maxnoe on 22.05.17.
Modifier and Type | Field and Description |
---|---|
double |
azimuthRad |
double |
zenithRad |
gstReferenceDateTime
Modifier and Type | Method and Description |
---|---|
static HorizontalCoordinate |
fromDegrees(double zenithDeg,
double azimuthDeg) |
static HorizontalCoordinate |
fromRad(double zenithRad,
double azimuthRad) |
double |
getAltitudeDeg() |
double |
getAltitudeRad() |
double |
getAzimuthDeg() |
double |
getAzimuthRad() |
double |
getZenithDeg() |
double |
getZenithRad() |
double |
greatCircleDistanceDeg(HorizontalCoordinate other) |
double |
greatCircleDistanceRad(HorizontalCoordinate other) |
CameraCoordinate |
toCamera(HorizontalCoordinate pointingPosition,
double focalLength)
Transform this horizontal coordinate to the camera frame for the given pointing position and focal length.
|
EquatorialCoordinate |
toEquatorial(ZonedDateTime observationTime,
EarthLocation earthLocation)
Transform this HorizontalCoordinate into the equatorial coordinate frame
for given observation time and location.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
datetimeToGST, greatCircleDistanceDeg, greatCircleDistanceRad
public static HorizontalCoordinate fromRad(double zenithRad, double azimuthRad)
public static HorizontalCoordinate fromDegrees(double zenithDeg, double azimuthDeg)
public double greatCircleDistanceRad(HorizontalCoordinate other)
public double greatCircleDistanceDeg(HorizontalCoordinate other)
public EquatorialCoordinate toEquatorial(ZonedDateTime observationTime, EarthLocation earthLocation)
Implementation of the formulas from https://en.wikipedia.org/wiki/Celestial_coordinate_system#Equatorial_.E2.86.90.E2.86.92_horizontal
observationTime
- earthLocation
- public CameraCoordinate toCamera(HorizontalCoordinate pointingPosition, double focalLength)
pointingPosition
- Pointing of the telescopefocalLength
- focalLength of the telescopepublic double getAltitudeRad()
public double getAltitudeDeg()
public double getZenithRad()
public double getAzimuthRad()
public double getZenithDeg()
public double getAzimuthDeg()
Copyright © 2019. All rights reserved.