Skip to content

Commit

Permalink
Since we are working with rational values here, this flooring and cei…
Browse files Browse the repository at this point in the history
…ling is no longer beneficial.
  • Loading branch information
MadMartian committed Feb 28, 2021
1 parent 0437a2d commit 6ce1ecd
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,6 @@ private boolean destinationDeviatedFromTarget() {
dt = new com.extollit.linalg.mutable.Vec3d(this.targetPosition),
dd = new com.extollit.linalg.mutable.Vec3d(this.destinationPosition);

dd.x = floor(dd.x);
dd.y = ceil(dd.y);
dd.z = floor(dd.z);

final Vec3i source = this.source.key;
dt.sub(source);
dd.sub(source);
Expand Down

0 comments on commit 6ce1ecd

Please sign in to comment.