package by.vorokhobko;

public class Triangle {
 /**
 * The class field.
 * Сreating point of a triangle a.
 */
	public Point a;
 /**
 * Сreating point of a triangle b.
 */
	public Point b;
 /**
 * Сreating point of a triangle c.
 */
	public Point c;
 /**
 * The constructor of the Triangle with the designation points.
 * @param a - a.
 * @param b - b.
 * @param c - c.
 */
	public Triangle(Point a, Point b, Point c) {
		this.a = a;
		this.b = b;
		this.c = c;
	}
 /**
 * Сalculate the area.
 * @return tag.
 */
	public double area() {
		double lineAB = a.distanceTo(b);
		double lineAC = a.distanceTo(c);
		double lineBC = b.distanceTo(c);
		if((lineAB < (lineAC + lineBC)) && (lineAC < (lineAB + lineBC)) && (lineBC < (lineAB + lineAC))) {
			double pperimeter = lineAB + lineAC + lineBC;
			return Math.sqrt(pperimeter * (pperimeter - lineAB) * (pperimeter - lineAC) * (pperimeter - lineBC));
		} else {
			throw new ArithmeticException("The triangle cannot be constructed");
		}
	}
}
@@ -16,17 +16,207 @@
 khobko;%0A
+/**%0A * Triangle.%0A *%0A * Class Triangle calculate the area of the triangle part 001, lesson 3.%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @since 05.12.2016.%0A * @version 4.%0A */
 %0A
-
 public c
@@ -293,29 +293,30 @@
 le a.%0A */%0A%09p
-ublic
+rivate
  Point a;%0A /
@@ -355,29 +355,30 @@
 le b.%0A */%0A%09p
-ublic
+rivate
  Point b;%0A /
@@ -421,21 +421,22 @@
 .%0A */%0A%09p
-ublic
+rivate
  Point c
@@ -833,12 +833,13 @@
 c);%0A
-
 %09%09if
+ 
 ((li

add Triangle