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

    Function getHousePosition

    • Determine which house a given ecliptic position occupies

      Returns the house number (1-12) that contains the specified position. Houses follow the natural order of the zodiac.

      Parameters

      • longitude: number

        Ecliptic longitude in degrees (0-360)

      • cusps: number[]

        Array of 12 house cusps in degrees

      Returns number

      House number (1-12)

      const cusps = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330];
      getHousePosition(15, cusps) // 1 (between cusp 1 and cusp 2)
      getHousePosition(45, cusps) // 2 (between cusp 2 and cusp 3)
      getHousePosition(350, cusps) // 12 (between cusp 12 and cusp 1)