UNPKG

salat-first

Version:

Islamic prayer times calculation with special support for Moroccan methods and Maliki madhab

30 lines (29 loc) 1.03 kB
/** * Shadow length calculation methods */ export declare enum ShadowMethod { /** * Shafi, Maliki, and Hanbali madhabs use this method * Asr time starts when shadow length equals object height plus shadow length at noon */ Standard = "standard", /** * Hanafi madhab uses this method * Asr time starts when shadow length equals twice object height plus shadow length at noon */ Hanafi = "hanafi" } /** * Calculates the shadow length for Asr prayer * @param method The shadow calculation method * @returns The shadow length multiplier */ export declare function getShadowLengthMultiplier(method: ShadowMethod): number; /** * Calculates the angle for Asr prayer based on shadow length * @param latitude The latitude in degrees * @param declination The solar declination in degrees * @param shadowLength The shadow length multiplier * @returns The angle in degrees */ export declare function calculateAsrAngle(latitude: number, declination: number, shadowLength: number): number;