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