We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f6bd7 commit 439ca72Copy full SHA for 439ca72
src/extras/BuildingShapeUtils.js
@@ -363,7 +363,7 @@ class BuildingShapeUtils extends ShapeUtils {
363
return true;
364
}
365
const slope = (nextvec.y - vec.y) / (nextvec.x - vec.x);
366
- const intercept = v.y / slope / v.x;
+ const intercept = vec.y / slope / vec.x;
367
const intersection = (point[1] - intercept) / slope;
368
if (intersection > point[0]) {
369
count++;
0 commit comments