#include using namespace std; void solve() { long long x1,x2,x3,y1,y2,y3; cin>>x1>>y1>>x2>>y2>>x3>>y3; // need to calculate whethere tan(a+b) = tan(c) // should we use double ? long long left = x3*(x2*y1 + y2*x1) ; long long right = y3*(x1*x2 - y1*y2); if(left == right ) cout<<"Yes\n"; else cout<<"No\n"; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cout.flush(); cout<>t; while(t--){ solve(); } return 0; }