#include using namespace std; int main(){ int T; cin>>T; while(T--){ pair A,B,C; cin>>A.first>>A.second; cin>>B.first>>B.second; cin>>C.first>>C.second; if(atan2(A.second,A.first)+atan2(B.second,B.first)==atan2(C.second,C.first)){ cout<<"Yes"<