|
@@ -99,12 +99,7 @@ public class CollisionResult implements Comparable<CollisionResult> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public int compareTo(CollisionResult other) {
|
|
public int compareTo(CollisionResult other) {
|
|
|
- if (distance < other.distance)
|
|
|
|
|
- return -1;
|
|
|
|
|
- else if (distance > other.distance)
|
|
|
|
|
- return 1;
|
|
|
|
|
- else
|
|
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return Float.compare(distance, other.distance);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|