public static double getDist(Atom a, Atom b) { double xDist = a.getPoint().x - b.getPoint().x; double yDist = a.getPoint().y - b.getPoint().y; double dist = Math.sqrt((xDist * xDist) + (yDist * yDist)); return dist; }
public static double getRoughDist(Atom a, Atom b) { double xDist = a.getPoint().x - b.getPoint().x; double yDist = a.getPoint().y - b.getPoint().y; return xDist + yDist; }