#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; ll UX = XA*XB-YA*YB; ll UY = XA*YB+XB*YA; cout << (UY*XC==UX*YC && UY*XC+UX*YC>0 ? "Yes" : "No") << "\n"; } return 0; }