Given 3 points, how do I calculate the normal vector?

前端 未结 3 1463
忘掉有多难
忘掉有多难 2021-02-01 03:07

Given three 3D points (A,B, & C) how do I calculate the normal vector? The three points define a plane and I want the vector perpendicular to this plane.

Can I get

3条回答
  •  醉梦人生
    2021-02-01 03:39

    You need to calculate the cross product of any two non-parallel vectors on the surface. Since you have three points, you can figure this out by taking the cross product of, say, vectors AB and AC.

    When you do this, you're calculating a surface normal, of which Wikipedia has a pretty extensive explanation.

提交回复
热议问题