#include using namespace std; using ll = long long; double my_atan(ll x, ll y){ if(x == 0) return asin(1); if(y == 0){ if(x >= 0) return 0; else return acos(-1); } double res = atan(double(y) / double(x)); if(res < 0) res += acos(-1); return res; } void solve(){ ll ax,ay,bx,by,cx,cy; cin >> ax >> ay >> bx >> by >> cx >> cy; cout << (my_atan(ax,ay) + my_atan(bx,by) == my_atan(cx,cy) ? "Yes" : "No") << endl; } int main(){ int t; cin >> t; while(t--) solve(); }