We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 799670d commit 87a40d8Copy full SHA for 87a40d8
src/main/java/eu/mihosoft/vrl/v3d/Vector3d.java
@@ -430,15 +430,18 @@ public String toString() {
430
*/
431
@Override
432
public boolean equals(Object obj) {
433
- return test(obj,Plane.EPSILON_Point);
+ if (!Vector3d.class.isInstance(obj)) {
434
+ return false;
435
+ }
436
+ return test((Vector3d)obj,Plane.EPSILON_Point);
437
}
438
439
double distance(Vector3d v) {
440
Vector3d diff = v.minus(this);
441
return diff.magnitude();
442
443
- public boolean test(Object obj, double epsilon) {
444
+ public boolean test(Vector3d obj, double epsilon) {
445
if (obj == null) {
446
return false;
447
0 commit comments