Introduction
Here is the source code for Main.java
Source
//package com.java2s;
//License from project: Apache License
public class Main {
private static float calDistance(float x1, float y1, float x2, float y2) {
return (float) Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
}
}