Class Triangle

Write the class Triangle that contains integer fields of coordinates if triangle vertices x1, y1, x2, y2, x3, y3. Implement the constructors:

  • by default, that fills with zeroes the vertex coordinates of triangle;

  • with parameters, that receives the coordinates of the vertices of the triangle and initialises them.

Implement the methods:

  • void Out() - prints the coordinates of the triangle space separated and at the end prints the new line symbol.

  • double area() - returns the area of triangle;

  • double perimeter() - returns the perimeter of triangle;

  • double inscribedRadius() - returns the radius of inscribed circle;

  • double describedRadius() - returns the radius of circumscribed circle;

You need to submit the class only.

Judge is implemented in С++, С# та Java language.

Time limit 1 second
Memory limit 128 MiB