Here you can find the source of euclideanDistance(int i0, int j0, int i1, int j1)
public static double euclideanDistance(int i0, int j0, int i1, int j1)
//package com.java2s; //License from project: Open Source License public class Main { public static double euclideanDistance(int i0, int j0, int i1, int j1) { return Math.sqrt(Math.pow(i0 - i1, 2d) + Math.pow(j0 - j1, 2d)); }/*from w w w.j a v a2 s. co m*/ }