containsPoint method
Tests whether another is inside or along the edges of this.
Implementation
bool containsPoint(Point<num> another) {
return another.x >= left &&
another.x <= left + width &&
another.y >= top &&
another.y <= top + height;
}