stations function

List<Station> stations(
  1. LongitudeFunction longitudeAt,
  2. double startJdTT,
  3. double endJdTT, {
  4. double step = 1,
})

Stations of longitudeAt in startJdTT … endJdTT: moments when the speed in longitude changes sign. See longitudeCrossings for step.

The longitude hardly changes near a station, so its time is determined less sharply than a crossing – to about a minute for the planets.

Implementation

List<Station> stations(
  LongitudeFunction longitudeAt,
  double startJdTT,
  double endJdTT, {
  double step = 1,
}) => [
  for (final t in _stationTimes(longitudeAt, startJdTT, endJdTT, step))
    Station(
      t,
      _normalize(longitudeAt(t)),
      longitudeSpeed(longitudeAt, t - step / 4) > 0,
    ),
];