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

Function getAzimuth

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

Source from the content-addressed store, hash-verified

95817 return Math.asin(Math.sin(b) * Math.cos(e) + Math.cos(b) * Math.sin(e) * Math.sin(lambda));
95818}
95819function getAzimuth(hourAngle, latitudeInRadians, declination) {
95820 var H = hourAngle;
95821 var phi = latitudeInRadians;
95822 var delta = declination;
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;

Callers 1

getSolarPositionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected