| 95823 | return Math.atan2(Math.sin(H), Math.cos(H) * Math.sin(phi) - Math.tan(delta) * Math.cos(phi)); |
| 95824 | } |
| 95825 | function getAltitude(hourAngle, latitudeInRadians, declination) { |
| 95826 | var H = hourAngle; |
| 95827 | var phi = latitudeInRadians; |
| 95828 | var delta = declination; |
| 95829 | return Math.asin(Math.sin(phi) * Math.sin(delta) + Math.cos(phi) * Math.cos(delta) * Math.cos(H)); |
| 95830 | } |
| 95831 | function getSiderealTime(dates, longitudeWestInRadians) { |
| 95832 | return DEGREES_TO_RADIANS * (THETA0 + THETA1 * dates) - longitudeWestInRadians; |
| 95833 | } |