package pravvich;

public class Point {
	public double x;
	public double y;

	public Point(double x, double y) {
		this.x = x;
		this.y = y;
	}
		
	public double distanceTo(Point that) {//принимает объект типа Point и называет that
		//calculate distance between two points
		double distance;
		return distance = Math.sqrt((Math.pow(that.y - this.y), 2) + (Math.pow(that.x - this.x), 2));
		}
}
@@ -1,16 +1,19 @@
 package 
+ru.
 pravvich
@@ -186,95 +186,123 @@
 t) %7B
-//%D0%BF%D1%80%D0%B8%D0%BD%D0%B8%D0%BC%D0%B0%D0%B5%D1%82 %D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82 %D1%82%D0%B8%D0%BF%D0%B0 Point %D0%B8 %D0%BD%D0%B0%D0%B7%D1%8B%D0%B2%D0%B0%D0%B5%D1%82 that%0A%09%09//calculate distance between two points
+%0A%09%09double thatX, thatY, thisX, thisY;%0A%09%09%0A%09%09thisX = this.x;%0A%09%09thisY = this.y;%0A%09%09thatX = that.x;%0A%09%09thatY = that.y;%0A%09%09
 %0A%09%09d
@@ -319,27 +319,23 @@
 ance
+Pre
 ;%0A%09%09
-return 
 distance
  = M
@@ -334,22 +334,14 @@
 ance
+Pre
  = 
-Math.sqrt((
 Math
@@ -349,31 +349,30 @@
 pow(
+(
 that
-.y
+Y
  - this
-.y
+Y
 ), 2) + 
 (Mat
@@ -367,17 +367,16 @@
 ), 2) + 
-(
 Math.pow
@@ -380,29 +380,108 @@
 pow(
+(
 that
-.x
+X
  - this
-.x
+X
 ), 2)
-)
+;%0A%09%09%0A%09%09double distance;%0A%09%09distance = Math.sqrt(distancePre);%0A%09%09%0A%09%09return distance
 ;%0A%09%09

add chapter_001\lesson_3\src\main\java\ru\pravvich\Point.java