From 64228c8ed2144a1ed0f7b6a634a9171c04616693 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Mon, 11 Apr 2022 12:32:26 -0700 Subject: [PATCH] Vec3d: synchronize with the sim-math library --- src/main/java/com/simsilica/mathd/Vec3d.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/simsilica/mathd/Vec3d.java b/src/main/java/com/simsilica/mathd/Vec3d.java index 8452c5f5..eb2c2d57 100644 --- a/src/main/java/com/simsilica/mathd/Vec3d.java +++ b/src/main/java/com/simsilica/mathd/Vec3d.java @@ -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; }