mirror of
https://github.com/acamarata/qibla-dart.git
synced 2026-07-03 04:10:40 +00:00
docs: add Architecture and Acknowledgments sections; ci: add --fatal-infos to dart analyze
This commit is contained in:
parent
4ca3ca6258
commit
506f33c094
2 changed files with 9 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
sdk: ${{ matrix.dart-version }}
|
sdk: ${{ matrix.dart-version }}
|
||||||
- run: dart pub get
|
- run: dart pub get
|
||||||
- run: dart analyze
|
- run: dart analyze --fatal-infos
|
||||||
- run: dart test
|
- run: dart test
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,10 @@ Haversine distance between two points in kilometers (spherical Earth approximati
|
||||||
| `kaabaLng` | 39.826150 | Ka'bah center longitude (degrees east) |
|
| `kaabaLng` | 39.826150 | Ka'bah center longitude (degrees east) |
|
||||||
| `earthRadiusKm`| 6371 | WGS-84 volumetric mean radius |
|
| `earthRadiusKm`| 6371 | WGS-84 volumetric mean radius |
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
All calculations use the forward azimuth formula from spherical trigonometry. Great-circle paths use spherical linear interpolation (Slerp). Distance uses the haversine formula. The Ka'bah coordinates are fixed constants verified against published GPS surveys.
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
Dart 3.7+. Works with Flutter and standalone Dart applications.
|
Dart 3.7+. Works with Flutter and standalone Dart applications.
|
||||||
|
|
@ -77,6 +81,10 @@ Dart 3.7+. Works with Flutter and standalone Dart applications.
|
||||||
- [qibla](https://www.npmjs.com/package/qibla) (npm) - The TypeScript version of this package.
|
- [qibla](https://www.npmjs.com/package/qibla) (npm) - The TypeScript version of this package.
|
||||||
- [pray-calc](https://github.com/acamarata/pray-calc) - Islamic prayer times calculator.
|
- [pray-calc](https://github.com/acamarata/pray-calc) - Islamic prayer times calculator.
|
||||||
|
|
||||||
|
## Acknowledgments
|
||||||
|
|
||||||
|
Ka'bah coordinates verified against published GPS surveys and cross-checked with satellite imagery. Spherical trigonometry formulas follow the standard forward azimuth derivation used in aviation and geodesy.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT](LICENSE)
|
[MIT](LICENSE)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue