@orbinauts/engine - v0.1.2
    Preparing search index...

    Function nextLightChange

    • The next instant the Satellite goes into the Earth's shadow or comes out of it after at, within the seconds given, or nothing where the light does not change in that time — a Geostationary Satellite is in sunlight for weeks outside its eclipse seasons. Sampled a minute at a time and then pinned by bisection to the second, so a caller asking every second still pays one sample per orbit rather than one per second: it asks again only once the instant answered has gone by.

      Parameters

      • source: Source
      • at: Date
      • withinSeconds: number

      Returns Date | undefined