https://www.bastabalkana.com/2015/11/rastojanje-dve-tacke-na-krivoj-kao-funkcija-promenljive-x/