Skip to content

Commit

Permalink
Fix typo is distance computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tara Drwenski committed May 6, 2024
1 parent 02c87c6 commit 50b8947
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public void setLocation(Point3D p) {
public static double distanceSq(double x1, double y1, double z1, double x2, double y2, double z2) {
x1 -= x2;
y1 -= y2;
z2 -= z2;
z1 -= z2;
return (x1 * x1 + y1 * y1 + z1 * z1);
}

Expand Down

0 comments on commit 50b8947

Please sign in to comment.