Condition for Two Lines to Be Perpendicular