L^2= (XB-XA)^2+(YB-YA)^2