From e037735610a284675683d020b12432ef9c5711e0 Mon Sep 17 00:00:00 2001 From: Nate-Wessel Date: Tue, 26 Mar 2024 19:19:16 +0000 Subject: [PATCH] minor cleanup --- frontend/src/corridor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/corridor.js b/frontend/src/corridor.js index 7810864..48f4f64 100644 --- a/frontend/src/corridor.js +++ b/frontend/src/corridor.js @@ -70,7 +70,7 @@ export class Corridor extends Factor { return '' } get bearing(){ - if( ! this.#intersections.length == 2) return + if( ! this.#intersections.length == 2 ) return undefined; const [A, B] = this.#intersections const x = Math.cos(d2r(A.lat)) * Math.sin(d2r(B.lat)) - Math.sin(d2r(A.lat)) * Math.cos(d2r(B.lat)) * Math.cos(d2r(B.lng - A.lng)) @@ -78,7 +78,6 @@ export class Corridor extends Factor { // degrees from true East, "corrected" 17d for the city's grid rotation const azimuth = r2d(Math.atan2(x,y)) const compass = { NE: 45, SE: -45, SW: -135, NW: 135 } - console.log(azimuth) if( azimuth < compass.NE && azimuth > compass.SE ) return 'East' if( azimuth > compass.NE && azimuth < compass.NW ) return 'North' if( azimuth < compass.SE && azimuth > compass.SW ) return 'South'