ProtoFlux:Rect To Position Size

From Resonite Wiki
Revision as of 10:03, 30 June 2024 by AmasterAmaster (talk | contribs) (Created a page for the Rect To Position Size node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Rect To Position Size
Rect
Position
Size
Rects

The Rect To Position Size node takes in a rect value and returns 2 specific float2 values giving a position of the rect's X and Y position, and giving the size of the rect with the literal Width and Height. In contrast to the Rect To Min Max node where it adds the position and size to get a rect's bounding data.

If you need to make a rect from a position and size, use the Rect From Position Size node instead.

If you need to split a rect into specific and separated outputs, use the Rect To XYWH node instead.

Inputs

Rect (Rect)

The rect value.

Outputs

Position (float2)

Returns the X and Y position of this rect.

Size (float2)

Returns the literal Width and Height size of this rect.