Files
sun/vendor/github.com/nathan-osman/go-sunrise/longitude.go
T
2026-10-23 14:11:51 +00:00

12 lines
285 B
Go

package sunrise
import (
"math"
)
// EclipticLongitude calculates the angular distance of the earth along the
// ecliptic.
func EclipticLongitude(solarAnomaly, equationOfCenter, d float64) float64 {
return math.Mod(solarAnomaly+equationOfCenter+180+ArgumentOfPerihelion(d), 360)
}