Plane Equation

http://www.songho.ca/math/plane/plane.html

 

 

Plane Equation

The equation of a plane in 3D space is defined with normal vector (perpendicular to the plane) and a known point on the plane.

 

Graph of a plane in 3D
Graph of a plane in 3D

 

Let the normal vector of a plane, normal vector and the known point on the plane, P1. And, let any point on the plane as P.

We can define a vector connecting from P1 to P, which is lying on the plane.

Since the vector and the normal vectornormal vector are perpendicular each other, the dot product of two vector should be 0.

This dot product of the normal vector and a vector on the plane becomes the equation of the plane. By calculating the dot product, we get;
equation of a plane

If we substitute the constant terms to , then the plane equation becomes simpler;
equation of a plane

Distance from Origin

If the normal vector is normalized (unit length), then the constant term of the plane equation,d becomes the distance from the origin.

(distance of origin to plane, i.e., P1O to n1's projection.  (a1, b1, c1) dot (-x1, -y1, -z1) / ||n1|| = -(a1x1 + b1y1 + c1z1))

 

Plane with unit normal
Plane with unit normal

 

If the unit normal vector (a1, b1, c1), then, the point P1 on the plane becomes (Da1, Db1, Dc1), whereD is the distance from the origin. The equation of the plane can be rewritten with the unit vector and the point on the plane in order to show the distanceD is the constant term of the equation;

    

Therefore, we can find the distance from the origin by dividing the standard plane equation by the length (norm) of the normal vector (normalizing the plane equation). For example, the distance from the origin for the following plane equation with normal (1, 2, 2) is 2;

Distance from a Point

 

Distance between Plane and Point
Distance between Plane and Point

 

The shortest distance from an arbitrary point P2 to a plane can be calculated by the dot product of two vectors and, projecting the vector to the normal vector of the plane.

The distance D between a plane equation of a plane and a point P2 becomes;

The numerator part of the above equation, is expanded;

Finally, we put it to the previous equation to complete the distance formula;
distance between plane and point

Note that the distance formula looks like inserting P2 into the plane equation, then dividing by the length of the normal vector. For example, the distance from a point (-1, -2, -3) to a plane x + 2y + 2z - 6 = 0 is;

Notice this distance is signed; can be negative value. It is useful to determine the direction of the point. For example, if the distance is positive, the point is in the same side where the normal is pointing to. And, a negative distance means the point is in opposite side.

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值