I have a problem with the following formula i don't know if it's correct:
i have the following vectors: P1 = (x1,y1), P2 = (x2,y2).
the formula is the following:
P1 - P2 / || P1 - P2 || where ||.|| is the norm.
i did the following.
(x1-x2)/ sqrt[(x1-x2)^2 + (y1-y2)^2]
(y1-y2)/ sqrt[(x1-x2)^2 + (y1-y2)^2]
is that the right way to do it???