Equations of lines and planes