Check whether the coordinates of either point satisfy the equation of the line.