Horje
check if point is left or right of vector Code Example
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




Cpp

Related
c++ int to string Code Example c++ int to string Code Example
c++ evaluate expression Code Example c++ evaluate expression Code Example
explicit vs implicit c++ Code Example explicit vs implicit c++ Code Example
initialize all elements of vector to 0 c++ Code Example initialize all elements of vector to 0 c++ Code Example
cpp sample code Code Example cpp sample code Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8