Fixed Arithmetic Error
This commit is contained in:
parent
1f67f51467
commit
1b56dd47f0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user