Finding coordinates of a point between two points?

后端 未结 4 465
半阙折子戏
半阙折子戏 2020-12-03 18:09

Doing some 3D stuff in wpf- want to use a simpler test to see if everything is working (before moving to curves).

The basic question is given two points x1,y1,z1 and

4条回答
  •  北海茫月
    2020-12-03 19:10

    For each p between 0 and 1 then this will give you a point on the line segment:

    (x1, y1, z1) + p * ((x2, y2, z2) - (x1, y1, z1))
    

提交回复
热议问题