Java Euclidean Distance euclideanDistance(int i0, int j0, int i1, int j1)

Here you can find the source of euclideanDistance(int i0, int j0, int i1, int j1)

Description

euclidean Distance

License

Open Source License

Declaration

public static double euclideanDistance(int i0, int j0, int i1, int j1) 

Method Source Code

//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*/
}

Related

  1. euclideanDistance(double[] l1, double[] l2, boolean weighted)
  2. euclideanDistance(double[] p, double[] q)
  3. euclideanDistance(double[] vector)
  4. euclideanDistance(double[] vector1, double[] vector2)
  5. euclideanDistance(float[] points, int p1, int p2, boolean isDisp, double width, double height)
  6. euclideanDistance(int startX, int startY, int startZ, int endX, int endY, int endZ)
  7. euclideanDistanceNorm(float[] x, float[] y)
  8. euclideanDistanceSq2D(float x1, float y1, float x2, float y2)