mirror of
https://github.com/acamarata/qibla-dart.git
synced 2026-07-01 11:24:27 +00:00
629 B
629 B
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.