Skip to content

Commit 439ca72

Browse files
authored
Update BuildingShapeUtils.js
1 parent c1f6bd7 commit 439ca72

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
@@ -363,7 +363,7 @@ class BuildingShapeUtils extends ShapeUtils {
363363
return true;
364364
}
365365
const slope = (nextvec.y - vec.y) / (nextvec.x - vec.x);
366-
const intercept = v.y / slope / v.x;
366+
const intercept = vec.y / slope / vec.x;
367367
const intersection = (point[1] - intercept) / slope;
368368
if (intersection > point[0]) {
369369
count++;

0 commit comments

Comments
 (0)