Java Distance Calculate dist(int p1, int p2)

Here you can find the source of dist(int p1, int p2)

Description

dist

License

Open Source License

Declaration

public static double dist(int p1, int p2) 

Method Source Code

//package com.java2s;
//   The MIT License (MIT)

public class Main {
    public static double dist(int p1, int p2) {
        return Math.sqrt(p1 * p1 + p2 * p2);
    }/*from w w  w  .  j av a 2s.  co m*/

    public static double dist(double p1, double p2) {
        return Math.sqrt(p1 * p1 + p2 * p2);
    }
}

Related

  1. dist(float x1, float y1, float x2, float y2)
  2. dist(float x1, float y1, float x2, float y2)
  3. dist(float x1, float y1, float x2, float y2, float xp, float yp)
  4. dist(float x1, float y1, float z1, float x2, float y2, float z2)
  5. dist(int i, int j, int width)
  6. dist(int x1, int y1, int x2, int y2)
  7. dist14(double d12, double d23, double d34, double theta123, double theta234, double phi)
  8. dist2Degrees(double dist, double radius)
  9. dist2Radians(double dist, double radius)