In case of u don’t know

No Comments

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))

Categories: Development Tags: Etiketler:,

Bir cevap yazın