How do I find the orthogonal projection of a point onto a plane

后端 未结 2 480

Lets say I have point (x,y,z) and plane with point (a,b,c) and normal (d,e,f). I want to find the point that is the result of the orthogonal projection of the first point o

2条回答
  •  孤城傲影
    2020-12-23 12:46

    The projection of a point q = (x, y, z) onto a plane given by a point p = (a, b, c) and a normal n = (d, e, f) is

    q_proj = q - dot(q - p, n) * n
    

    This calculation assumes that n is a unit vector.

提交回复
热议问题