# Rect(ロブロックス データ型) > A value that represents a two-dimensional rectangle. - URL:https://roblox.minecraft-okinawa.com/reference/datatypes/Rect/ - 公式:https://create.roblox.com/docs/reference/engine/datatypes/Rect ## コンストラクター - `Rect.new()`:Returns a new **Rect** with zero Vector2 positions. - `Rect.new(min: Vector2, max: Vector2)`:Returns a new **Rect** from the given Vector2 positions. - `Rect.new(minX: number, minY: number, maxX: number, maxY: number)`:Returns a new **Rect** using the first and last two arguments as coordinates for corners. ## プロパティ - `Rect.Width: number`:The width of the **Rect**. - `Rect.Height: number`:The height of the **Rect**. - `Rect.Min: Vector2`:The coordinates of the top-left corner. - `Rect.Max: Vector2`:The coordinates of the bottom-right corner. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)