Java Distance between Points distance(Point2D a, Point2D b)

Here you can find the source of distance(Point2D a, Point2D b)

Description

distance

License

Apache License

Declaration

public static double distance(Point2D a, Point2D b) 

Method Source Code

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

import java.awt.geom.Point2D;

public class Main {
    public static double distance(Point2D a, Point2D b) {
        return a.distance(b);
    }//from ww w . jav a 2s .c o  m
}

Related

  1. distance(@Nonnull Point2D pA, @Nonnull Point2D pB)
  2. distance(final double p1X, final double p1Y, final double p2X, final double p2Y)
  3. DistanceSquareToLine(double x, double y, double x1, double y1, double x2, double y2)
  4. getDistance(Point2D point1, Point2D point2)
  5. getDistance(Point2D point1, Point2D point2)
  6. getDistance(Point2D.Double pt1, Point2D.Double pt2)