Direction of two points

前端 未结 2 502
傲寒
傲寒 2021-02-06 23:39

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<

2条回答
  •  别跟我提以往
    2021-02-07 00:09

    A nice way to remember which way the subtraction goes is to think of what the vector actually does. Imagine vector v resting at p1, pointing and connecting to p2. This means that p1 + v = p2. Therefore, v = p2-p1.

提交回复
热议问题