I want to generate planes equations ($Ax + By + Cz + D = 0$) that contain a ray $R$ with origin $O$ and a direction $D$.
2026-05-06 09:56:34.1778061394
On
How to generate planes equations containing a certain ray?
29 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
0
On
First pick a direction $E$ that is not parallel to $D$. Then you can express a plane parametrically by $P = O + tD + uE$. Write this in coordinates, expressing $P=(x,y,z)$ and choosing coordinates $D = (d_1,d_2,d_3)$ and $E = (e_1,e_2,e_3)$: $$x = t d_1 + u e_1 $$ $$y = t d_2 + u e_2 $$ $$z = t d_3 + u e_3 $$ Now just eliminate the variables $t,u$, and the one equation that you have left over can be rewritten in the form $Ax + By + Cz + D = 0$.
You can use the dot product to find an equation of $(x,y,z)$ perpendicular to $D = (D_x,D_y,D_z)$. This equation gives a plane at the origin. So you just need to translate the equation the point of interest:
$$ (x,y,z) \cdot (D_x,D_y,D_z) = 0 $$
$$ (x-tD_x,y-tD_y,z-tDz) \cdot (D_x,D_y,D_z) = 0$$