Converts and copies a rectangle, storing components as float32.
sourceCreates a rectangle from an origin and size, copying both vectors' values.
positionsizeShared view of the rectangle origin; changing x/y directly changes the rectangle.
Copies values from a vector of the same type as the rectangle origin.
valueRectangle component type: i32 integers or f32 floating-point values.
Copies values from a vector of the same type as the rectangle size.
valueTests whether a point is inside the rectangle; includes minimum edges, excludes maximum edges, and supports negative sizes.
pointProtectedcreateReturns a new rectangle intersecting this and a same-type rectangle; returns undefined if there is no positive-area intersection.
rectangleReturns a copy of the center; integer rectangles halve their size using integer division truncated toward zero.
Readonly[mutable
sf::Rect, sharing 16 native bytes with its member views.