bool containsPoint(Point<num> another)

Tests whether another is inside or along the edges of this.

Source

bool containsPoint(Point<num> another) {
  return another.x >= left &&
         another.x <= left + width &&
         another.y >= top &&
         another.y <= top + height;
}