Drive the distance from a point is P( x1,y1) to a line Ax +BY +C=0 .

Kumar Aryan's image