I was solving the question Problem - A - Codeforces.
If the cross product is zero then obviously they are collinear since sin(x)=0 if x=2nPI.
However, how do they decide if it is Left or Right based on the value of cross-product i.e; x1y2-x2y1.
Please demystify this for me. Am I missing any fundamentals?
using namespace std;
long long xa,xb,ya,yb,xc,yc,t;
long long cp(long long x1,long long x2,long long y1,long long y2)
The Cross Product of two vectors is a vector that is perpendicular to both vectors. The direction of the Cross Product is given by the right-hand rule. You can understand it better by taking cross products of the unit vectors \^i, \^j and \^j.