407101: GYM102697 072 Tri-Angle
Description
Given the three points that represent the corners of an isosceles triangle, determine the angle that the triangle is pointing. The angle can be calculated based on the vector created along the line of symmetry of the triangle that exits through the point of the triangle. The angle should be represented in degrees and should be determined relative to the vector (1,0). The following image shows a triangle with points at (-1,0), (0,1), and (-2,2), and has an angle of 135 degrees.
Each line contains two space-separated floating point values that represent the $$$x$$$ and $$$y$$$ values of each point of the triangle. They are randomly ordered.
OutputA single floating point value that represents the degree measure of the angle created from the positive x-axis to the direction of the triangle.
ExampleInput-2 2 0 1 -1 0Output
135.0Note
Make sure answers are provided in degrees and fall within the range of 0 to 360.