// this is main.cpp
// stuck on getting the ouput of the distance NOT to be 0 i think its someting to do with the variables
// in the distance method in the point.cpp file
// The invokeX and invokeY are set to 0,0
cout << "The distance from invoking point (" << invokeX << "," << invokeY << ")" << endl;
cout << "to the coordinates you entered (" << pt1.getX() << "," << pt1.getY() << ")" << endl;
cout << "is " << invoke.distance(aPoint) << " units" << endl;
// This is where i think i am going wrong because i keep getting 0 as an output
double Point::distance(Point aPoint)
{
float dist_x = aPoint.getX() - 0;
cout << "dist x is:" << dist_x;
//float dist_x = x - aPoint.x;
//float dist_y = y - aPoint.y;
//return sqrt(pow(dist_x - 0, 2) + pow(dist_y - 0, 2));
}