I have a vector A and a point P. My problem is how to find out if point is on the left or right side of vector looking from the point of origin of a vector in direction of it.
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|
|
This answer on MO should do it for you. |
|||
|
|
|
Let $B$ be the vector from the end point of $A$ to $P$, then observe the sign of the coefficient of $A \wedge B$ in a chosen basis. The exact sign is up to $O(2)/SO(2)$, but you only need to distinguish between the two cases, so it's ok :) UPD: Now that I think about it, letting $B$ be the vector from the starting point of $A$ to $P$ is even neater. |
||||
|
|
