#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ vector> P(3); for(auto &[x,y] : P) cin >> x >> y,y = abs(y); vector An(3); for(int i=0; i<3; i++){ auto [x,y] = P.at(i); An.at(i) = atan2(y,x); } if(abs(An.at(0)+An.at(1)-An.at(2)) <= 1e-9) cout << "Yes\n"; else cout << "No\n"; } }