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

    Function eclipticToZodiac

    • Convert ecliptic longitude to zodiac sign and degree

      Returns which sign (0-11) and degree within that sign (0-30).

      Parameters

      • longitude: number

        Ecliptic longitude in degrees (0-360)

      Returns { signIndex: number; degreeInSign: number }

      Object with signIndex (0-11) and degreeInSign (0-30)

      eclipticToZodiac(0)      // { signIndex: 0, degreeInSign: 0 } (0° Aries)
      eclipticToZodiac(15.5) // { signIndex: 0, degreeInSign: 15.5 } (15°30' Aries)
      eclipticToZodiac(45) // { signIndex: 1, degreeInSign: 15 } (15° Taurus)
      eclipticToZodiac(359) // { signIndex: 11, degreeInSign: 29 } (29° Pisces)