From d72b70d8dbdaa740d18b8a5f45e3c8d26eff07b9 Mon Sep 17 00:00:00 2001 From: Pierre Laborde <49183340+labordep@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:50:27 +0100 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1f1c135..af98268 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Pharo 12 CI](https://github.com/OpenSmock/GeoTools/actions/workflows/Pharo12CI.yml/badge.svg)](https://github.com/OpenSmock/GeoTools/actions/workflows/Pharo12CI.yml) # GeoTools -Geographic Tools as Coordinates & Kinematics. +Geographic Tools as `Coordinates`, `Kinematics` and `GeodesicUtilities`. ## Coordinates tools @@ -82,15 +82,20 @@ kin courseInDegrees: 180. kin headingInDegrees: 2. ``` -## Map Projection +## Map projection + +### Geodesic Utilities class Use ```GeodesicUtilities``` to compute angle and distance between Geodesic (lat/long) coordinates, taking in account the earth curve. ```smalltalk -coord1 := AbsoluteCoordinates latitudeInDegrees: 48.3897 longitudeInDegrees: -4.48333 altitudeInMeters: 52. "Brest french city position" -coord2 := AbsoluteCoordinates latitudeInDegrees: 48.8667 longitudeInDegrees: 2.33333 altitudeInMeters: 79. "Paris french city position" +"Brest french city position" +coord1 := AbsoluteCoordinates latitudeInDegrees: 48.3897 longitudeInDegrees: -4.48333 altitudeInMeters: 52. +"Paris french city position" +coord2 := AbsoluteCoordinates latitudeInDegrees: 48.8667 longitudeInDegrees: 2.33333 altitudeInMeters: 79. -convertGeodesicToAzimuthInRadiansFrom: coord1 to: coord2 +"Return an azimuth in Radians between the positions of these two cities depending Earth curve" +GeodesicUtilities convertGeodesicToAzimuthInRadiansFrom: coord1 to: coord2. ``` ## Installation