Polygon Rotation

아직 제출이 없습니다시간 제한3초메모리 제한256 MB

문제

You are given a convex polygon which contains the origin strictly inside. The polygon is slowly rotated by angle α\alpha around the origin in counter-clockwise order. Calculate the swept area, that is, the area of the set of all points which were covered by the polygon at least once during its rotation.

입력

Each test consists of one or more test cases.

The first line contains a positive integer TT, the number of test cases. Then TT test cases are given.

The first line of each test case contains an integer nn, the number of vertices of the polygon (3n1053 \leq n \leq 10^5), followed by a real number α\alpha, the rotation angle in radians, given with exactly six digits after the decimal point (0<α<2π0 < \alpha < 2 \pi). The following nn lines contain the description of the vertices in counter-clockwise order. Each vertex is described by two integers x_ix\_i and y_iy\_i which are its coordinates (109x_i,y_i109-10^9 \leq x\_i, y\_i \leq 10^9). It is guaranteed that the polygon has non-zero area, contains the origin strictly inside, and that no three vertices lie on the same line.

The sum of nn over all test cases does not exceed 10510^5.

출력

The output must contain TT lines, one for each test case.

Each line must contain the answer for the corresponding test case with absolute or relative error no more than 10610^{-6}.