Given four different points in space. Find whether these points can form a square or not.
The first line of input contains an integer T denoting the number of test cases.
The first line of each testcase contains x1, y1, x2, y2, x3, y3, x4, y4(four points coordinates) separated by space.
Print "Yes"(without quotes) if it is square else "No"(without quotes).
1 ≤ T ≤ 30
1 ≤ x1, x2, x3, x4, y1, y2, y3, y4 ≤ 100
20 10 10 20 20 20 10 10
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.