bool IsPointInRect(Point point, Rect rect) { // 点が矩形の中にあるかチェック if (条件① かつ 条件②) { return true; } return false; }