Created a page for the Rect To Min Max node. |
Added a suggestion note. |
||
Line 14: | Line 14: | ||
The '''Rect To Min Max''' node takes in a [[Type:Rect|rect]] [[Value Type|value]] and returns 2 specific [[Type:float2|float2]] values, showing the minimum size of the rect, usually just at the <code>X</code> and <code>Y</code> position, and also returning the max size of this rect, which is usually <code>X</code> + <code>Width</code> and <code>Y</code> + <code>Height</code>. | The '''Rect To Min Max''' node takes in a [[Type:Rect|rect]] [[Value Type|value]] and returns 2 specific [[Type:float2|float2]] values, showing the minimum size of the rect, usually just at the <code>X</code> and <code>Y</code> position, and also returning the max size of this rect, which is usually <code>X</code> + <code>Width</code> and <code>Y</code> + <code>Height</code>. | ||
{{Note|If you need to make a rect from a min and max size, use the [[ProtoFlux:Rect From Min Max|Rect From Min Max]] node instead. | |||
If you need to split a rect into specific and separated outputs, use the [[ProtoFlux:Rect To XY WH|Rect To XYWH]] node instead.|suggestion}} | |||
== Inputs == | == Inputs == |
Revision as of 08:43, 30 June 2024
Rect To Min Max
Rects
The Rect To Min Max node takes in a rect value and returns 2 specific float2 values, showing the minimum size of the rect, usually just at the X
and Y
position, and also returning the max size of this rect, which is usually X
+ Width
and Y
+ Height
.
Inputs
Rect (Rect)
The rect value.
Outputs
Min (float2)
Returns the minimum size of this rect (usually returning the X
and Y
position of this rect).
Max (float2)
Returns the maximum size of this rect (usually returning the X
+ Width
and Y
+ Height
of this rect).