Skip to content

Commit 3ec9668

Browse files
authored
Update BuildingShapeUtils.js
1 parent de0ba88 commit 3ec9668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class BuildingShapeUtils extends ShapeUtils {
289289
p2 = points[1];
290290
let angle = Math.atan2(p2.y - p1.y, p2.x - p1.x) - Math.atan2(p0.y - p1.y, p0.x - p1.x);
291291
angles.push(angle);
292-
for (let i = 1; i < points.length - 2; i++) {
292+
for (let i = 1; i < points.length - 1; i++) {
293293
p0 = points[i - 1];
294294
p1 = points[i];
295295
p2 = points[i + 1];

0 commit comments

Comments
 (0)