hypatia / angle
Angles implementation for Hypatia project.
dev-main
2021-03-22 09:35 UTC
Requires
- php: >=7.4.0
- grrr-amsterdam/garp-functional: ^5.0
Requires (Dev)
- pestphp/pest: ^1.0
This package is auto-updated.
Last update: 2025-03-29 00:54:09 UTC
README
TODO
var_dump(Dms\to_dms(48.825214)); var_dump(Dms\to_dms(-25.7)); var_dump(Dms\to_string(Dms\to_dms(48.825214))); var_dump(Dms\to_latitude(Dms\to_string(Dms\to_dms(-25.7)))); $dms = Dms\to_dms(42.67); echo Dms\to_longitude($dms); echo PHP_EOL; var_dump($dms); $d1 = new Deg(30); $d2 = new Deg(60); $d3 = new Deg(123.45); echo $d1->get(); echo PHP_EOL; echo $d2->get(); echo PHP_EOL; echo $d3->get(); echo PHP_EOL; echo $d3; echo PHP_EOL; /* var_dump(Dms\to_dms(90)); var_dump(Dms\to_dms(180)); var_dump(Dms\to_dms(59.9999999)); var_dump(Dms\to_dms(59.9999999999999999)); var_dump(Dms\to_dms(60)); */