Skip to content

Commit

Permalink
Vec3d: synchronize with the sim-math library
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Apr 11, 2022
1 parent d40d296 commit 64228c8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/com/simsilica/mathd/Vec3d.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,12 @@ public boolean equals( Object o ) {
if( o == null || o.getClass() != getClass() )
return false;
Vec3d other = (Vec3d)o;
if (Double.compare(x, other.x) != 0) {
if( Double.compare(x, other.x) != 0 )
return false;
}
if (Double.compare(y, other.y) != 0) {
if( Double.compare(y, other.y) != 0 )
return false;
}
if (Double.compare(z, other.z) != 0) {
if( Double.compare(z, other.z) != 0 )
return false;
}

return true;
}

Expand Down

0 comments on commit 64228c8

Please sign in to comment.