From 1a81904bce69f0fe30c7c01bbdbb2db0103cdb6d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 31 Dec 2023 15:22:39 +0100 Subject: [PATCH] Fix tests --- src/Logic/GeoOperations.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Logic/GeoOperations.ts b/src/Logic/GeoOperations.ts index fb753b91a..d47eec5c7 100644 --- a/src/Logic/GeoOperations.ts +++ b/src/Logic/GeoOperations.ts @@ -897,12 +897,16 @@ export class GeoOperations { /** * GeoOperations.parseBearing("N") // => 0 * GeoOperations.parseBearing("E") // => 90 - * GeoOperations.parseBearing("NE") // => 22.5 + * GeoOperations.parseBearing("NE") // => 45 + * GeoOperations.parseBearing("NNE") // => 22.5 * * GeoOperations.parseBearing("90") // => 90 * GeoOperations.parseBearing("-90°") // => 270 * GeoOperations.parseBearing("180 °") // => 180 * + * GeoOperations.parseBearing(180) // => 180 + * GeoOperations.parseBearing(-270) // => 90 + * */ public static parseBearing(str: string | number) { let n: number