|
static float | Area (this Rect rect) |
|
static Rect | CombineWith (this Rect rect, Rect other) |
| Returns the rectangle that encloses both this rectangle and another one.
|
|
static bool | Contains (this Rect rect, Rect other) |
| Returns true if the other-rect is completely contained in the this-rect.
|
|
static void | Expand (ref this Rect rect, float amount) |
| Extends the rectangle by the specified amount to each side.
|
|
static Vector2[] | GetCorners (this Rect rect) |
|
static bool | IsDegenerate (ref this Rect rect) |
|
static float | OverlapArea (this Rect rect0, Rect rect1) |
|
static Rect[] | Subdivide (this Rect rect) |
| Divides the rectangle into four smaller boundaries (like in a quadtree). The results are ordered in a Z-Curve.
|
|
static void | Subdivide (this Rect rect, ref NativeList< Rect > subdividedRectangles) |
| Divides the rectangle into four smaller boundaries (like in a quadtree). The results are ordered in a Z-Curve.
|
|
static Vector4 | ToVector4 (this Rect rect) |
|