Equations of parallel and perpendicular lines