UNPKG

@observerly/astrometry

Version:

observerly's lightweight, zero-dependency, type safe astrometry library written in Typescript for calculating the position of celestial objects in the sky.

79 lines (78 loc) 2.68 kB
/*****************************************************************************************************************/ /*****************************************************************************************************************/ /** * * convertDegreesToRadians() * * Converts an angle in degrees to radians. * * @param degrees - The angle in degrees to convert to radians. * @returns The angle in radians. * */ export declare const convertDegreesToRadians: (degrees: number) => number; /*****************************************************************************************************************/ /** * * convertRadiansToDegrees() * * Converts an angle in radians to degrees. * * @param degrees - The angle in radians to convert to degrees. * @returns The angle in degrees. * */ export declare const convertRadiansToDegrees: (degrees: number) => number; /*****************************************************************************************************************/ /** * * getNormalizedAzimuthalDegree() * * Normalizes an azimuthal angle it to a value between 0 and 360. * * @param degrees - The angle in degrees to convert. * @returns The normalized angle in degrees. * */ export declare const getNormalizedAzimuthalDegree: (degrees: number) => number; /*****************************************************************************************************************/ /** * * getNormalizedInclinationDegree() * * Normalizes an inclination angle it to a value between 0 and 360. * * @param degrees - The angle in degrees to convert. * @returns The normalized angle in degrees. * */ export declare const getNormalizedInclinationDegree: (degrees: number) => number; /*****************************************************************************************************************/ /** * * convertDegreeToDMS() * * @param degree - The degree value to convert to degrees, minutes and seconds. * @returns the degrees, minutes and seconds components of a degree value. * */ export declare const convertDegreeToDMS: (degree: number) => { deg: number; min: number; sec: number; }; /*****************************************************************************************************************/ /** * * convertDegreeToHMS() * * @param degree - The degree value to convert to hours, minutes and seconds. * @returns the hours, minutes and seconds components of a degree value. * */ export declare const convertDegreeToHMS: (degree: number) => { hrs: number; min: number; sec: number; }; /*****************************************************************************************************************/