Detecting whether a point is above or below a slope

66.5k Views Asked by At

Is there a simple test to know if a point is above or below a line in 2 dimensional vector domain?

1

There are 1 best solutions below

1
On

If the line equation is $y=ax+b$ and the coordinates of a point is $(x_0,y_0)$ then compare $y_0$ and $ax_0+b$, for example if $y_0>ax_0+b$ then the point is above the line, etc.