Equations of lines and dilations