Geometry in R3

Line in R3 open_in_new

If a line $L$ goes through a point $A$ with position vector $\vec a$ and is parallel to $\vec t$, a general point $\vec x$ on $L$ is $$ \vec x = \vec a + \lambda\vec t,\quad \lambda\in\R $$ or $$ (\vec x - \vec a)\times\vec t = \vec 0. $$

Plane in R3 open_in_new

If a plane has a normal vector $\vec n$ and contains a point $\vec b$, then $(\vec x -\vec b)$ lies on the plane, so $$ (\vec x - \vec b)\cdot\vec n = 0. $$

For $\vec n=\hat n$, then $\vec b\cdot\hat n\equiv p$ is the perpendicular distance from origin to plane, $$ \vec x\cdot\hat n = p. $$

Alternatively, if $\vec a, \vec b, \vec c$ lie on the plane, then $$ (\vec x - \vec a) \cdot \big((\vec b-\vec a)\times(\vec c-\vec a)\big) = 0. $$

Example (intersection of a line and a plane)

Example (shortest distance between two lines)