Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Calculates the distance between a body and the Sun at a given time.

      Given a date and time, this function calculates the distance between the center of body and the center of the Sun. For the planets Mercury through Neptune, this function is significantly more efficient than calling HelioVector followed by taking the length of the resulting vector.

      Parameters

      • body: Body

        A body for which to calculate a heliocentric distance: the Sun, Moon, any of the planets, or a user-defined star.

      • date: FlexibleDateTime

        The date and time for which to calculate the heliocentric distance.

      Returns number

      The heliocentric distance in AU.