测试 another 是否在 this 的内部或边缘。
another
this
bool containsPoint(Point<num> another) { return another.x >= left && another.x <= left + width && another.y >= top && another.y <= top + height; }