Celestine API Documentation - v0.2.0
    Preparing search index...

    Function findNextIngress

    • Find when a body will next enter a different house.

      Parameters

      • body: CelestialBody

        Celestial body

      • houseCusps: number[]

        Array of 12 house cusp longitudes

      • fromJD: number

        Starting Julian Date

      • maxSearchDays: number = 365

        Maximum days to search (default: 365)

      Returns HouseIngress | null

      HouseIngress with timing, or null if not found

      const nextIngress = findNextIngress(
      CelestialBody.Saturn,
      houseCusps,
      currentJD
      );

      if (nextIngress) {
      console.log(`Saturn enters house ${nextIngress.house} on ${nextIngress.ingressDate?.year}`);
      }