diff options
| author | Jake Mannens <jake@asger.xyz> | 2024-10-18 14:51:26 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2024-10-29 11:42:54 +1100 |
| commit | 09ade38700ae3795c47826cf4c80c65f9c3338f3 (patch) | |
| tree | 2bc877d130f70a89cc891fb18e034e00a337478a /PositionCalculator.cs | |
| parent | e8e3c4cba8ffa0056e984c113cfbb75319e00022 (diff) | |
Diffstat (limited to 'PositionCalculator.cs')
| -rw-r--r-- | PositionCalculator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PositionCalculator.cs b/PositionCalculator.cs index 2140a88..f6fdbff 100644 --- a/PositionCalculator.cs +++ b/PositionCalculator.cs @@ -40,7 +40,7 @@ public record MelwaysPage { // and grid number (e.g: 131 D7) by looking up the origin coordinates // of the Melways page from a pre-defined table, then interpolating // the grid number across the page to get a (very) rough position. -public class PositionCalculator { +internal class PositionCalculator { private const float PageWidth = 0.0583403752108005f; private const float PageHeight = 0.0444074086328539f; @@ -72,7 +72,7 @@ public class PositionCalculator { new MelwaysPage { PageNo = 317, Latitude = -38.0493097638301, Longitude = 145.464666307851 } }; - public static GpsPosition? GetGpsPosition(ParsedPagerMessage message) { + internal static GpsPosition? GetGpsPosition(ParsedPagerMessage message) { if(message.MapType != MapType.Melways) return null; if(message.MapNo is null || message.MapGrid is null) |
