1. Engineering
2. Computer Science
3. check if a specific point xy is inside a rectanglewhat...

# Question: check if a specific point xy is inside a rectanglewhat...

###### Question details

Check if a specific point x,y is inside a rectangle...(What I have so far is below)

My code (c++):

bool Rectangle::constains(Point& p) {
    double x = p.getX();
    double y = p.getX();

// need help here

}

Some background on the program: