Write Cartesian equations of line in 3D (#621)