In applications, it is sometimes necessary or useful to know whether two given lines are parallel or perpendicular. A vertical line is parallel only to other vertical lines and is perpendicular to any horizontal line. Cases involving nonvertical lines can be han- dled by the following slope criteria.