#include using i64 = long long; #define rep(i,n) for(i64 i=0; i> ax >> ay >> bx >> by >> cx >> cy; i64 fx = ax * bx - ay * by; i64 fy = ax * by + ay * bx; cout << (fx * cy == fy * cx ? "Yes\n" : "No\n"); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); i64 T; cin >> T; rep(i,T) testcase(); return 0; }