Fix tests

This commit is contained in:
Pieter Vander Vennet 2023-12-31 15:22:39 +01:00
parent 0edb78957c
commit 1a81904bce

View file

@ -897,12 +897,16 @@ export class GeoOperations {
/** /**
* GeoOperations.parseBearing("N") // => 0 * GeoOperations.parseBearing("N") // => 0
* GeoOperations.parseBearing("E") // => 90 * 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") // => 90
* GeoOperations.parseBearing("-90°") // => 270 * GeoOperations.parseBearing("-90°") // => 270
* GeoOperations.parseBearing("180 °") // => 180 * GeoOperations.parseBearing("180 °") // => 180
* *
* GeoOperations.parseBearing(180) // => 180
* GeoOperations.parseBearing(-270) // => 90
*
*/ */
public static parseBearing(str: string | number) { public static parseBearing(str: string | number) {
let n: number let n: number