2026-05-01 22:38:44 +08:00
|
|
|
package saturn
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"b612.me/astro/basic"
|
|
|
|
|
"b612.me/astro/calendar"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// AscendingNode 土星升交点黄经 / ascending node longitude of Saturn.
|
2026-10-15 23:54:15 +08:00
|
|
|
func (module *Saturn) AscendingNode(date time.Time) float64 {
|
|
|
|
|
return module.AscendingNodeN(date, -1)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
// AscendingNodeN 土星升交点黄经(n 变体) / n-parameterised ascending node longitude of Saturn.
|
|
|
|
|
func (module *Saturn) AscendingNodeN(date time.Time, n int) float64 {
|
2026-09-23 18:55:12 +08:00
|
|
|
jd := calendar.Date2JD(date.UTC())
|
2026-10-15 23:54:15 +08:00
|
|
|
return basic.SaturnAscendingNodeNWithInstance(basic.UTC2TT(jd), n, module.inst)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescendingNode 土星降交点黄经 / descending node longitude of Saturn.
|
2026-10-15 23:54:15 +08:00
|
|
|
func (module *Saturn) DescendingNode(date time.Time) float64 {
|
|
|
|
|
return module.DescendingNodeN(date, -1)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
// DescendingNodeN 土星降交点黄经(n 变体) / n-parameterised descending node longitude of Saturn.
|
|
|
|
|
func (module *Saturn) DescendingNodeN(date time.Time, n int) float64 {
|
2026-09-23 18:55:12 +08:00
|
|
|
jd := calendar.Date2JD(date.UTC())
|
2026-10-15 23:54:15 +08:00
|
|
|
return basic.SaturnDescendingNodeNWithInstance(basic.UTC2TT(jd), n, module.inst)
|
2026-05-01 22:38:44 +08:00
|
|
|
}
|