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

    Function isOnAngle

    • Check if a position is within a specified orb of an angle

      Used for determining if a planet is conjunct an angle (ASC, MC, DSC, IC).

      Parameters

      • position: number

        Position to check in degrees

      • angle: number

        Angle (ASC, MC, etc.) in degrees

      • orb: number = 10

        Allowable orb in degrees (default: 10°)

      Returns boolean

      true if position is within orb of the angle

      isOnAngle(15, 10, 10)    // true (5° from angle, within 10° orb)
      isOnAngle(25, 10, 10) // false (15° from angle, outside 10° orb)
      isOnAngle(355, 5, 10) // true (10° from angle, crossing 0°)