/Pie_dividing

Suppose you are given a convex (coordinates (x_i; y_i) for i from 0 to n). You have to divide it to 4 parts of equal squares by 2 orthogonal lines. The answer is the coordinates of the point of lines' intersection and the angle between Ox and one of the lines.

Primary LanguageC++

Pie_dividing

Suppose you are given a convex (coordinates (x_i; y_i) for i from 0 to n). You have to divide it to 4 parts of equal squares by 2 orthogonal lines. The answer is the coordinates of the point of lines' intersection and the angle between Ox and one of the lines.