package ru.job4j.condition;

/**
 *Class triangle.
 *
 *@author i.sliusar
 *@version $Id$
 *@since 0.1
 *03.06.2017
 */
public class Triangle {
	/**
	 * a.
	 */
	private Point a;
	/**
	 * b.
	 */
	private Point b;
	/**
	 * c.
	 */
	private Point c;
	/**
	 *point.
	 *@param a -  .
	 *@param b -  .
	 *@param c -  .
	 */
	public Triangle(Point a, Point b, Point c) {
		this.a = a;
		this.b = b;
		this.c = c;
	}
	/**
	 *area.
	 *@return double rezult.
	 */
	public double area() {
		int ax = this.a.getX();
		int ay = this.a.getY();
		int bx = this.b.getX();
		int by = this.b.getY();
		int cx = this.c.getX();
		int cy = this.c.getY();
		return  (ax * (by - cy) + bx * (cy - ay) + cx * (ay - by)) / 2;
	}
}
@@ -149,12 +149,19 @@
 %0A%09 *
+%D0%92%D0%B5%D1%80%D1%88%D0%B8%D0%BD%D0%B0
  a.%0A
-
 %09 */
@@ -187,16 +187,23 @@
 %09/**%0A%09 *
+%D0%92%D0%B5%D1%80%D1%88%D0%B8%D0%BD%D0%B0
  b.%0A%09 */
@@ -229,16 +229,23 @@
 %09/**%0A%09 *
+%D0%92%D0%B5%D1%80%D1%88%D0%B8%D0%BD%D0%B0
  c.%0A%09 */
@@ -275,13 +275,19 @@
 %0A%09 *
-point
+%D0%A2%D1%80%D0%B5%D1%83%D0%B3%D0%BE%D0%BB%D1%8C%D0%BD%D0%B8%D0%BA
 .%0A%09 
@@ -298,17 +298,23 @@
 ram a - 
- 
+%D0%92%D0%B5%D1%80%D1%88%D0%B8%D0%BD%D0%B0
 .%0A%09 *@pa
@@ -321,17 +321,23 @@
 ram b - 
- 
+%D0%92%D0%B5%D1%80%D1%88%D0%B8%D0%BD%D0%B0
 .%0A%09 *@pa
@@ -344,17 +344,23 @@
 ram c - 
- 
+%D0%92%D0%B5%D1%80%D1%88%D0%B8%D0%BD%D0%B0
 .%0A%09 */%0A%09

3.3 Triangle