Class Sun
java.lang.Object
org.shredzone.commons.suncalc.util.Sun
Calculations and constants for the Sun.
- See Also:
-
- "Astronomy on the Personal Computer, 4th edition (Oliver Montenbruck, Thomas Pfleger) - ISBN 978-3-540-67221-0"
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
angularRadius
(double distance) Returns the angular radius of the sun.static Vector
position
(JulianDate date) Calculates the geocentric position of the sun.static Vector
positionEquatorial
(JulianDate date) Calculates the equatorial position of the sun.static Vector
positionHorizontal
(JulianDate date, double lat, double lng) Calculates the horizontal position of the sun.
-
Method Details
-
positionEquatorial
Calculates the equatorial position of the sun.- Parameters:
date
-JulianDate
to be used- Returns:
Vector
containing the sun position
-
position
Calculates the geocentric position of the sun.- Parameters:
date
-JulianDate
to be used- Returns:
Vector
containing the sun position
-
positionHorizontal
Calculates the horizontal position of the sun.- Parameters:
date
-JulianDate
to be usedlat
- Latitude, in radianslng
- Longitute, in radians- Returns:
Vector
of horizontal sun position
-
angularRadius
Returns the angular radius of the sun.- Parameters:
distance
- Distance of the sun, in kilometers.- Returns:
- Angular radius of the sun, in radians.
- See Also:
-