Java Distance Calculate distanceBetweenPoints(double ax, double ay, double bx, double by)

Here you can find the source of distanceBetweenPoints(double ax, double ay, double bx, double by)

Description

distance Between Points

License

Apache License

Declaration

public static double distanceBetweenPoints(double ax, double ay, double bx, double by) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double distanceBetweenPoints(double ax, double ay, double bx, double by) {
        return Math.sqrt(Math.pow((float) (bx - ax), 2) + Math.pow((float) (by - ay), 2));
    }/*ww  w  .  ja v  a  2 s  . co  m*/
}

Related

  1. distanceBetween(double x1, double y1, double x2, double y2)
  2. distanceBetween(double xpos1, double ypos1, double xpos2, double ypos2)
  3. distanceBetween2GeoPositionsInMeters(double latA, double lngA, double latB, double lngB)
  4. distanceBetween2Points(float p1[], float p2[])
  5. distanceBetween2Points(float vectorX0, float vectorY0, float vectorXP, float vectorYP)
  6. DistanceBetweenPoints(double x1, double y1, double x2, double y2)
  7. distanceBetweenPoints(float vx, float vy, float wx, float wy)
  8. distanceBetweenPoints(float[] xyz1, float[] xyz2)
  9. distanceByLBS(double lo1, double la1, double lo2, double la2)