pray-calc/.github/wiki/api/functions/getAngles.md
Aric Camarata 4227afc2c3 docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config
targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to
package.json. Generate initial API reference pages.

Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
2026-05-30 16:41:58 -04:00

57 lines
1,023 B
Markdown

[**pray-calc v2.1.1**](../README.md)
***
[pray-calc](../README.md) / getAngles
# Function: getAngles()
> **getAngles**(`date`, `lat`, `lng`, `elevation?`, `temperature?`, `pressure?`): [`TwilightAngles`](../interfaces/TwilightAngles.md)
Defined in: [getAngles.ts:216](https://github.com/acamarata/pray-calc/blob/af34aef986c37d8de9cf8db0744a41e3b0c99c40/src/getAngles.ts#L216)
Compute dynamic twilight depression angles for Fajr and Isha.
## Parameters
### date
`Date`
Observer's local date (time-of-day is ignored)
### lat
`number`
Latitude in decimal degrees (-90 to 90)
### lng
`number`
Longitude in decimal degrees (-180 to 180, currently unused; reserved)
### elevation?
`number` = `0`
Observer elevation in meters (default: 0)
### temperature?
`number` = `15`
Ambient temperature in °C (default: 15)
### pressure?
`number` = `1013.25`
Atmospheric pressure in mbar (default: 1013.25)
## Returns
[`TwilightAngles`](../interfaces/TwilightAngles.md)
Fajr and Isha depression angles in degrees