Some high school math concept has been forgotten, so I ask here.
If I have two points p1(x1,y1)
, p2(x2,y2)
, the direction is P1-->p2
, that's p1
points to p2
. To represent this direction by vector, is it Vector(x2-x1,y2-y1)
or Vector(x1-x2, y1-y2)
?
By the way, what is the purpose to normalize a vector?
Vector(x2-x1,y2-y1)
v(x,y)
is vn(x/Length(v), y/length(v))
.HTH