#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin>>T; for (int i=0;i>XA>>YA>>XB>>YB>>XC>>YC; cout << ((XA*YB+XB*YA)*XC==(XA*XB-YA*YB)*YC ? "Yes" : "No") << "\n"; } return 0; }