check if point is left or right of vector
Check position of point M(X, Y) relative to vector AB with points A(Ax, Ay) and B(Bx, By):
position = sign((Bx - Ax) * (Y - Ay) - (By - Ay) * (X - Ax))
M is: +1 left,
-1 right,
0 on the vector AB
check if point is left or right of vector
Check position of point M(X, Y) relative to vector AB with points A(Ax, Ay) and B(Bx, By):
position = sign((Bx - Ax) * (Y - Ay) - (By - Ay) * (X - Ax))
M is: +1 left,
-1 right,
0 on the vector AB
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us