#include #define fi first #define se second #define rep(i,s,n) for (int i = (s); i < (n); ++i) #define rrep(i,n,g) for (int i = (n)-1; i >= (g); --i) #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(),a.rend() #define len(x) (int)(x).size() #define dup(x,y) (((x)+(y)-1)/(y)) #define pb push_back #define eb emplace_back #define Field(T) vector> using namespace std; using ll = long long; using ull = unsigned long long; template using pq = priority_queue,greater>; using P = pair; templatebool chmax(T&a,T b){if(abool chmin(T&a,T b){if(b> t; function sign = [](ll x) { if (x >= 0) return 1; return 0; }; while(t--) { ll ax, ay, bx, by, cx, cy; cin >> ax >> ay >> bx >> by >> cx >> cy; __int128_t da = ax*ax+ay*ay, db = bx*bx+by*by, dc = cx*cx+cy*cy; if (dc*(ax*bx-ay*by)*(ax*bx-ay*by) == da*db*cx*cx && sign(ax*bx-ay*by) == sign(cx)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }