We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33a85d commit 4c309ceCopy full SHA for 4c309ce
src/buildingpart.js
@@ -154,7 +154,7 @@ class BuildingPart {
154
longestSide += Math.PI;
155
}
156
// Convert to angle.
157
- calculatedOptions.roof.direction = longestSide / Math.PI * 180 + Math.PI / 2;
+ calculatedOptions.roof.direction = longestSide / Math.PI * 180 + 90;
158
159
const extents = BuildingShapeUtils.extents(this.shape, calculatedOptions.roof.direction / 360 * 2 * Math.PI);
160
const shapeHeight = extents[3] - extents[1];
0 commit comments