Slope Criteria for Parallel and Perpendicular Lines