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.

27 lines (26 loc) 1.16 kB
/*****************************************************************************************************************/ /*****************************************************************************************************************/ /** * * formatDegreeToDMSHumanized() * * convert coordinate (in decimal degrees) to degrees (°), minutes ('), seconds (''). * * @param degree - The coordinate in decimal degrees to convert. * @returns e.g., a humanized degree in format string '0º 0' 00"' * */ export declare const formatDegreeToDMSHumanized: (degree: number) => string; /*****************************************************************************************************************/ /** * * formatDegreeToHMSHumanized() * * convert coordinate (in decimal degrees) to hours (h), minutes (m), seconds (s). * * @param degree - The coordinate in decimal degrees to convert. * @returns e.g., a humanized degree in format string '0ʰ 0ᵐ 00ˢ' * */ export declare const formatDegreeToHMSHumanized: (degree: number) => string; /*****************************************************************************************************************/