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

Function getDeclination

docs/app/js/sanddance-app.js:95815–95818  ·  view source on GitHub ↗
(eclipticLongitude, b)

Source from the content-addressed store, hash-verified

95813 return Math.atan2(Math.sin(lambda) * Math.cos(e) - Math.tan(b) * Math.sin(e), Math.cos(lambda));
95814}
95815function getDeclination(eclipticLongitude, b) {
95816 var lambda = eclipticLongitude;
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;

Callers 1

getSunCoordsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected