mirror of
https://github.com/acamarata/qibla-dart.git
synced 2026-07-01 03:14:29 +00:00
13 lines
629 B
Markdown
13 lines
629 B
Markdown
# Changelog
|
|
|
|
## 1.0.0 - 2026-03-08
|
|
|
|
### Added
|
|
|
|
- `qiblaAngle(lat, lng)` computes the initial bearing to the Ka'bah in degrees.
|
|
- `compassDir(bearing)` returns an eight-point compass abbreviation (N, NE, E, etc.).
|
|
- `compassName(bearing)` returns the full compass direction name (North, Northeast, etc.).
|
|
- `qiblaGreatCircle(lat, lng, [steps])` generates waypoints along the great circle to the Ka'bah via spherical linear interpolation.
|
|
- `distanceKm(lat1, lng1, lat2, lng2)` computes haversine distance between two points.
|
|
- Constants: `kaabaLat`, `kaabaLng`, `earthRadiusKm`.
|
|
- RangeError validation for all coordinate inputs.
|