RectExtensions

Static Class

Extension Methods

BottomLeft(rect: Rect): Vector2
BottomRight(rect: Rect): Vector2
Center(rect: Rect): Vector2
ClampPosition(rect: Rect, min: Vector2, max: Vector2): Rect
ClampSize(rect: Rect, min: Vector2, max: Vector2): Rect
Deflate(rect: Rect, value: float): Rect
Inflate(rect: Rect, value: float): Rect
Move(rect: Rect, x: float, y: float): Rect
Move(rect: Rect, value: float): Rect
Move(rect: Rect, value: Vector2): Rect
PathRect(painter: Painter2D, rect: Rect): void
PathRRect(painter: Painter2D, rect: Rect, radius: float): void
PathRRect(painter: Painter2D, rect: Rect, radius: Vector4): void
Scale(rect: Rect, x: float, y: float): Rect
Scale(rect: Rect, value: float): Rect
Scale(rect: Rect, vector2: Vector2): Rect
TopLeft(rect: Rect): Vector2
TopRight(rect: Rect): Vector2
WithHeight(rect: Rect, height: float): Rect
WithPosition(rect: Rect, position: Vector2): Rect
WithSize(rect: Rect, size: Vector2): Rect
WithWidth(rect: Rect, width: float): Rect
WithX(rect: Rect, x: float): Rect
WithY(rect: Rect, y: float): Rect

Inherited Members

On this page