ProtoFlux:RectFromMinMax

From Resonite Wiki
Revision as of 00:32, 21 August 2025 by YoshBot (talk | contribs) (YoshBot moved page ProtoFlux:Rect From Min Max to ProtoFlux:RectFromMinMax: Automated: removing spaces from ProtoFlux namespace)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Rect From Min Max
Min
Rect
Max
Rects

The Rect From Min Max node takes in 2 specific float2 values, giving the minimum size of the rect, usually just at the X and Y position, and also needing the max size of this rect, which is usually X + Width and Y + Height. Then this node returns a rect value that has the min and max provided. In contrast to the Rect From Position Size node where it takes the literal position and size to get a rect's bounding data.

If you need the min and max values from a rect, use the Rect To Min Max node instead.

If you want to make a rect using specific and separated inputs, use the Rect From XYWH node instead.

Inputs

Min (float2)

The minimum size of this rect (usually returning the X and Y position of this rect).

Max (float2)

The maximum size of this rect (usually returning the X + Width and Y + Height of this rect).

Outputs

Rect (Rect)

Returns the rect value.