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

    Function findMatchingAspect

    • Find which aspect (if any) a separation matches.

      Parameters

      • separation: number

        Angular separation between two bodies (0-180°)

      • Optionalconfig: aspects.AspectConfig

        Configuration specifying which aspects to check and orbs

      Returns { aspect: AspectDefinition; deviation: number } | null

      The matching aspect definition and deviation, or null if no match

      When multiple aspects could match (rare with reasonable orbs), returns the one with smallest deviation (closest to exact).

      const result = findMatchingAspect(88, { aspectTypes: [AspectType.Square] });
      // { aspect: { type: 'square', angle: 90, ... }, deviation: 2 }