ProtoFlux:Rect To Position Size

From Resonite Wiki
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.