/** * @copyright 2013 Sonia Keys * @copyright 2016 commenthol * @license MIT * @module line */ /** * Line: Chapter 19, Bodies in Straight Line */ /** * Time computes the time at which a moving body is on a straight line (great * circle) between two fixed points, such as stars. * * Coordinates may be right ascensions and declinations or longitudes and * latitudes. Fixed points are r1, d1, r2, d2. Moving body is an ephemeris * of 5 rows, r3, d3, starting at time t1 and ending at time t5. Time scale * is arbitrary. * * @throws Error * @param {Number} r1 - right ascension Coordinate 1 * @param {Number} d1 - declination Coordinate 1 * @param {Number} r2 - right ascension Coordinate 2 * @param {Number} d2 - declination Coordinate 2 * @param {Number[]} r3 - right ascension Coordinate 3 * @param {Number[]} d3 - declination Coordinate 3 * @param {Number} t1 - time in Julian Days * @param {Number} t5 - time in Julian Days * @returns {Number} time of alignment in Julian Days */ export declare function time(r1: number, d1: number, r2: number, d2: number, r3: number[], d3: number[], t1: number, t5: number): number; /** * Angle returns the angle between great circles defined by three points. * * Coordinates may be right ascensions and declinations or longitudes and * latitudes. If r1, d1, r2, d2 defines one line and r2, d2, r3, d3 defines * another, the result is the angle between the two lines. * * Algorithm by Meeus. * @param {number} r1 - Right ascension or longitude of point 1, in radians. * @param {number} d1 - Declination or latitude of point 1, in radians. * @param {number} r2 - Right ascension or longitude of point 2, in radians. * @param {number} d2 - Declination or latitude of point 2, in radians. * @param {number} r3 - Right ascension or longitude of point 3, in radians. * @param {number} d3 - Declination or latitude of point 3, in radians. * @returns {number} Angle between the great circles, in radians. */ export declare function angle(r1: number, d1: number, r2: number, d2: number, r3: number, d3: number): number; /** * Error returns an error angle of three nearly co-linear points. * * For the line defined by r1, d1, r2, d2, the result is the anglular distance * between that line and r0, d0. * * Algorithm by Meeus. * @param {number} r1 - Right ascension or longitude of point 1, in radians. * @param {number} d1 - Declination or latitude of point 1, in radians. * @param {number} r2 - Right ascension or longitude of point 2, in radians. * @param {number} d2 - Declination or latitude of point 2, in radians. * @param {number} r0 - Right ascension or longitude of the test point, in radians. * @param {number} d0 - Declination or latitude of the test point, in radians. * @returns {number} Error angle in radians. */ export declare function error(r1: number, d1: number, r2: number, d2: number, r0: number, d0: number): number; /** * AngleError returns both an angle as in the function Angle, and an error * as in the function Error. * * The algorithm is by B. Pessens. * * @param {number} r1 - Right ascension or longitude of point 1, in radians. * @param {number} d1 - Declination or latitude of point 1, in radians. * @param {number} r2 - Right ascension or longitude of point 2, in radians. * @param {number} d2 - Declination or latitude of point 2, in radians. * @param {number} r3 - Right ascension or longitude of point 3, in radians. * @param {number} d3 - Declination or latitude of point 3, in radians. * @returns {[number, number]} Angle and error angle, both in radians. */ export declare function angleError(r1: number, d1: number, r2: number, d2: number, r3: number, d3: number): [number, number]; declare const _default: { time: typeof time; angle: typeof angle; error: typeof error; angleError: typeof angleError; }; export default _default;