Skip to content

Commit

Permalink
Update BuildingShapeUtils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy authored May 15, 2024
1 parent 0dc0bad commit 6f4e431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extras/BuildingShapeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ class BuildingShapeUtils extends ShapeUtils {
p2 = points[i + 1];
angles.push(Math.atan((p2.y - p1.y) / (p2.x - p1.x)));
}
p1 = points[points.length - 1];
p2 = points[0];
angles.push(Math.atan((p2.y - p1.y) / (p2.x - p1.x)));
return angles;
}

Expand Down

0 comments on commit 6f4e431

Please sign in to comment.