Tag: Cebir

In case of u don’t know

There is an old Turkish proverb;

it is not shameful to be unacquainted, alas not to learn is

This code sample returns the distance of a point (x,y) to a line ((x0,y0),(x1,y1))


(((y0 - y1) * x) + ((x1 - x0) * y) + ((x0 * y1) - (x1 * y0)) ) / Math.Sqrt(Math.Pow((x1 - x0),2)+ Math.Pow((y1 - y0),2))