I am trying to figure out a way to check for a undefined value of a slope in which case it would be vertical. I have tried using NULL but that doesn't seem to work.
double Point::Slope(Point &p2)
{
   double slop = 0;
   slop = (y - p2.y) / (x - p2.x);
   if (slop == NULL)
   {
      slop = 10e100;
   }
   return slop;   
}
 
     
     
     
    