#include using namespace std; using ll = long long; bool solve(){ ll x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; if(x1 * y2 < x2 * y1){ swap(x1, x2); swap(y1, y2); } complex p1(x1, y1), p3(x3, y3); p3 /= p1; return abs(x2 * p3.imag() - p3.real() * y2) <= 1e-10; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int T; cin >> T; while(T--) cout << (solve() ? "Yes" : "No") << '\n'; }