MCPcopy Create free account
hub / github.com/microsoft/SandDance / getAltitude

Function getAltitude

docs/app/js/sanddance-app.js:95825–95830  ·  view source on GitHub ↗
(hourAngle, latitudeInRadians, declination)

Source from the content-addressed store, hash-verified

95823 return Math.atan2(Math.sin(H), Math.cos(H) * Math.sin(phi) - Math.tan(delta) * Math.cos(phi));
95824}
95825function 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}
95831function getSiderealTime(dates, longitudeWestInRadians) {
95832 return DEGREES_TO_RADIANS * (THETA0 + THETA1 * dates) - longitudeWestInRadians;
95833}

Callers 1

getSolarPositionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected