Skip to content

Commit 908cb98

Browse files
authored
Update buildingpart.js (#113)
1 parent 5af0558 commit 908cb98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buildingpart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class BuildingPart {
152152
let longestSide = BuildingShapeUtils.longestSideAngle(this.shape);
153153

154154
// Convert to angle.
155-
calculatedOptions.roof.direction = this.atanRadToCompassDeg(longestSide);
155+
calculatedOptions.roof.direction = BuildingPart.atanRadToCompassDeg(longestSide);
156156
}
157157
const extents = BuildingShapeUtils.extents(this.shape, calculatedOptions.roof.direction / 360 * 2 * Math.PI);
158158
const shapeHeight = extents[3] - extents[1];

0 commit comments

Comments
 (0)