@xfanta/mars-time
Version:
Mars time conversion library (MSD, MTC, Darian Calendar)
15 lines (14 loc) • 449 B
TypeScript
/**
* Converts degrees to radians.
* Commonly used in trigonometric calculations involving angles.
*
* @param deg Angle in degrees
* @returns Angle in radians
*/
export declare function deg2rad(deg: number): number;
/**
* Returns the sol of the year (day number in the current Martian year) from Mars Sol Date (MSD).
* @param msd Mars Sol Date
* @returns Sol of the year (1–669)
*/
export declare function getSolOfYear(msd: number): number;