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

    Function isWithinOrb

    • Check if a separation falls within orb of an aspect angle.

      Parameters

      • separation: number

        Angular separation between two bodies (0-180°)

      • aspectAngle: number

        The exact angle for the aspect type

      • orb: number

        The orb to use

      Returns boolean

      True if the separation is within orb of the aspect angle

      isWithinOrb(88, 90, 7)   // true (square with 2° deviation)
      isWithinOrb(85, 90, 3) // false (5° deviation, only 3° orb)
      isWithinOrb(120, 120, 8) // true (exact trine)