Function to find the line given two points
void lineFromPoints ( point P , point Q , double & a , double & b , double & c ) { a = Q . y - P . y ; b = P . x - Q . x ; c = a * ( P . x ) + b * ( P . y ) ; }