From 1ce6750017763d95a47d78e98848de6aa8ad0078 Mon Sep 17 00:00:00 2001 From: Kevin Nowaczyk Date: Wed, 15 May 2024 09:14:35 -0400 Subject: [PATCH] Update buildingpart.js --- src/buildingpart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildingpart.js b/src/buildingpart.js index 8bc7fe9..afd90f4 100644 --- a/src/buildingpart.js +++ b/src/buildingpart.js @@ -150,7 +150,7 @@ class BuildingPart { if (!calculatedOptions.roof.direction && directionalRoofs.includes(calculatedOptions.roof.shape)) { // Radians pi > x >= -pi const longestSide = BuildingShapeUtils.longestSideAngle(this.shape) - if (calculatedOptions.roof.orientation) === 'along') { + if (calculatedOptions.roof.orientation === 'along') { longestSide += Math.PI / 2 } if (longestSide < 0) {