We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de0ba88 commit 3ec9668Copy full SHA for 3ec9668
src/extras/BuildingShapeUtils.js
@@ -289,7 +289,7 @@ class BuildingShapeUtils extends ShapeUtils {
289
p2 = points[1];
290
let angle = Math.atan2(p2.y - p1.y, p2.x - p1.x) - Math.atan2(p0.y - p1.y, p0.x - p1.x);
291
angles.push(angle);
292
- for (let i = 1; i < points.length - 2; i++) {
+ for (let i = 1; i < points.length - 1; i++) {
293
p0 = points[i - 1];
294
p1 = points[i];
295
p2 = points[i + 1];
0 commit comments