How to find the distance between two points?
2D Distance Formula The Distance Formula is a variant of the Pythagorean Theorem that you used back in geometry.

Easting (1) Northing(1) Easting (2) Northing(2) Distance
Cad Designer

To get java code for distance between two points
distance between two points