#include using namespace std; typedef long long ll; void yn (bool f) { if (f) std::cout << "Yes" << '\n'; else std::cout << "No" << '\n'; } int main() { int test; cin >> test; long double ep = 1e-9; while (test--) { ll ax, ay, bx, by, cx, cy; cin >> ax >> ay >> bx >> by >> cx >> cy; yn(abs(atan2(ay, ax) + atan2(by, bx) - atan2(cy, cx)) < ep); } }