Represents a 2D rectangle with position and dimensions.
Constructs a new Rect with default zero values.
Y coordinate of the bottom edge.
X coordinate of the left edge.
Corner point at the left and bottom edges as a vec2.
X coordinate of the right edge.
Corner point at the right and top edges as a vec2.
Y coordinate of the top edge.
Static
Creates a new Rect instance.
Creates a Rect from minimum and maximum corner points.
Returns the center point of the rectangle as a vec2.
Returns the width and height of the rectangle as a vec2.
Moves the rectangle so its center is at the given vec2 position.
Sets the width and height of the rectangle from a vec2.
Converts the rectangle to a vec4 (left, bottom, right, top).
Represents a 2D rectangle with position and dimensions.