Fixed Arithmetic Error

This commit is contained in:
Paul Schaller 2023-11-14 16:28:56 +01:00
parent 1f67f51467
commit 1b56dd47f0

View File

@ -18,6 +18,6 @@ public class PointInterpolator {
ySum += points[i].y;
}
return new Point( xSum / 2, ySum / 2);
return new Point( xSum / points.length, ySum / points.length);
}
}