From 09ade38700ae3795c47826cf4c80c65f9c3338f3 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 18 Oct 2024 14:51:26 +1100 Subject: v0.4-rc2 --- PositionCalculator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PositionCalculator.cs') 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) -- cgit v1.3