Skip to content

Commit

Permalink
Fix bug in computation of 1D distances
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Jan 25, 2025
1 parent 325d749 commit d4eb29e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public void apply(final CoordinateTransform t) {
public double getDistance(){
final Point1D p1 = (Point1D) this.p1;
final Point1D p2 = (Point1D) this.p2;
return Math.abs(p1.getL()[0] - p2.getL()[0]);
return Math.abs(p1.getW()[0] - p2.getW()[0]);
}
}

0 comments on commit d4eb29e

Please sign in to comment.