2026-09-17 12:27:40 +08:00
|
|
|
package basic
|
|
|
|
|
|
2026-10-15 23:54:15 +08:00
|
|
|
import ()
|
|
|
|
|
|
|
|
|
|
// MoonHorizonWithInstance 用指定星历实例求值;inst 为 nil 时用进程当前模型 / evaluation with an explicit instance; nil uses the process model.
|
|
|
|
|
func MoonHorizonWithInstance(jdUTC float64, samples int, inst *Instance) [][2]float64 {
|
2026-09-23 18:55:12 +08:00
|
|
|
if !finite(jdUTC) {
|
2026-09-17 12:27:40 +08:00
|
|
|
return nil
|
|
|
|
|
}
|
2026-10-15 23:54:15 +08:00
|
|
|
return MoonStateAtWithInstance(jdUTC, inst).MoonHorizon(samples)
|
2026-09-17 12:27:40 +08:00
|
|
|
}
|