@@ -0,0 +1,556 @@
+package dkalymbaev;%0A%0Aimport static java.lang.Math.pow;%0Aimport static java.lang.Math.sqrt;%0A%0A/**%0A* Realises calculation of a distance between two points.%0A*/%0A%0Apublic class Point %7B%0A%09/**%0A%09* This class defines point placement on area%0A%09*/%0A%09public double x;%0A%09public double y;%0A%09%0A%09public Point(double x, double y) %7B%0A%09%09this.x = x;%0A%09%09this.y = y;%0A%09%7D%0A%09public distanceTo(Point point) %7B%0A%09%09/**%0A%09%09* This method calculates a distance between two points.%0A%09%09*/%0A%09%09float distance = Math.sqrt(Math.pow(point.y - this.y, 2) + Math.pow(point.x - this.x, 2));%0A%09%09return distance;%0A%09%7D%0A%7D

Add a Point.java file