Class Triangle#9070

Class Triangle

1 second
128 megabytes
Very easy

Write a class Triangle that contains integer fields representing the coordinates of the triangle's vertices: x1, y1, x2, y2, x3, y3.

Implement the following constructors:

Implement the following methods:

You only need to submit the class.

The checker has been implemented in C++, C#, and Java.

Testing

Test 1. Checks the parameterized constructor and the method area().Test 2. Checks the parameterized constructor and the method perimeter().Test 3. Checks the parameterized constructor and the method describedRadius().Test 4. Checks the parameterized constructor and the method inscribedRadius().Test 5. Checks the parameterized constructor and the methods area() and perimeter().Test 6. Checks the parameterized constructor and all calculation methods.Test 7. Checks the default constructor, parameterized constructor, and the output method.