由整数类型的 x、y、宽度、高度定义的 2D 矩形。
| zero | Shorthand for writing new RectInt(0,0,0,0). |
| allPositionsWithin | 包含 RectInt 中所有位置的 RectInt.PositionCollection。 |
| center | 矩形的中心坐标。 |
| height | 矩形的高度。 |
| max | The upper right corner of the rectangle; which is the maximal position of the rectangle along the x- and y-axes, when it is aligned to both axes. |
| min | The lower left corner of the rectangle; which is the minimal position of the rectangle along the x- and y-axes, when it is aligned to both axes. |
| position | 返回 RectInt 的位置 (x, y)。 |
| size | 返回 RectInt 的宽度和高度。 |
| width | 矩形的宽度。 |
| x | 矩形的左坐标。 |
| xMax | Shows the maximum X value of the RectInt. |
| xMin | Shows the minimum X value of the RectInt. |
| y | 矩形的上坐标。 |
| yMax | Shows the maximum Y value of the RectInt. |
| yMin | Show the minimum Y value of the RectInt. |
| RectInt | Creates a new RectInt. |
| ClampToBounds | 将 RectInt 的位置和大小限制在给定边界。 |
| Contains | 如果给定位置处于 RectInt 内,则返回 true。 |
| Equals | 如果给定的 RectInt 等于此 RectInt,则返回 true。 |
| Overlaps | 如果每个 RectInt Contains 共享点,则 RectInts 重叠。 |
| SetMinMax | 将边界设置为矩形的 min 和 max 值。 |
| ToString | 返回 RectInt 的 x、y、宽度和高度。 |
| operator == | 如果矩形相同,则返回 true。 |