Plane in R3
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. $$