So I've got the following problem:
I have points A and B and I draw a line going from A to B. Knowing the coordinates of each point, I need to find out if the point C is on the right side of the line. Everything is placed in a 2 dimensional space.
How am I supposed to solve this problem?
Take the vector product $w$ of $(u_x,u_y,0):=C-A$ and $(v_x,v_y,0):=B-A$. Then $w_x=w_y=0$, and $w_z=u_x v_y-u_yv_x$.
If $w_z>0$ then $C$ is on the right of $B-A$. If $w_z<0$ then $C$ is on the left of $B-A$. Equality holds when $C$ is on the line $AB$.