Java Distance Calculate distance2D(double x1, double z1, double x2, double z2)

Here you can find the source of distance2D(double x1, double z1, double x2, double z2)

Description

distance D

License

Open Source License

Declaration

public static double distance2D(double x1, double z1, double x2, double z2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double distance2D(double x1, double z1, double x2, double z2) {
        return Math.sqrt(((x1 - x2) * (x1 - x2)) + ((z1 - z2) * (z1 - z2)));
    }/*from w  w  w  . ja va 2s  .  c  om*/
}

Related

  1. distance(String seq1, String seq2)
  2. distance2(float x, float y, float x1, float y1)
  3. distance2(float x1, float y1, float x2, float y2)
  4. distance2(int x1, int y1, int x2, int y2)
  5. distance2d(double x1, double y1, double x2, double y2)
  6. distance2points3D(double[] p1, double[] p2)
  7. distance3d(double x1, double y1, double z1, double x2, double y2, double z2)
  8. distance3Sq(double x1, double y1, double z1, double x2, double y2, double z2)
  9. distance_Sphere(double rlon1, double rlat1, double rlon2, double rlat2)