public class Arvutused{ public static double kaugus(double x1, double y1, double x2, double y2){ double dx=x2-x1; double dy=y2-y1; return Math.sqrt(Math.pow(dx, 2)+dy*dy); } }