- Joined
- Apr 18, 2015
- Messages
- 408
- Thread Author
- #1
@Cloud @Arbiter
boolean Dist = coordinate1.equals(coordinate2));
double Realdist = coordinate1.distanceTo(coordinate2);
@SlashnHax pointed out that the value for Realdist in the picture is the max double.
To me it's logical that dist returns false too since the distance is not zero.
Temporary fixed it by comparing the x/y values.
boolean Dist = coordinate1.equals(coordinate2));
double Realdist = coordinate1.distanceTo(coordinate2);
@SlashnHax pointed out that the value for Realdist in the picture is the max double.
To me it's logical that dist returns false too since the distance is not zero.
Temporary fixed it by comparing the x/y values.
Last edited: