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

    Function detectAspect

    • Detect an aspect between two bodies.

      Parameters

      Returns Aspect | null

      Detected aspect or null if no aspect within orb

      const sun = { name: 'Sun', longitude: 280.37, longitudeSpeed: 1.02 };
      const moon = { name: 'Moon', longitude: 223.32, longitudeSpeed: 13.18 };

      const aspect = detectAspect(sun, moon);
      // { type: 'sextile', separation: 57.05, deviation: 2.95, ... }