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