Equations of horizontal and vertical lines