#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); if(now == 0) cout << "Yes\n"; else cout << "No\n"; } }