Created a page for the Rect From Min Max node. |
Added "In contrast" sentance. |
||
Line 13: | Line 13: | ||
|}} | |}} | ||
The '''Rect From Min Max''' node takes in 2 specific [[Type:float2|float2]] values, giving the minimum size of the rect, usually just at the <code>X</code> and <code>Y</code> position, and also needing the max size of this rect, which is usually <code>X</code> + <code>Width</code> and <code>Y</code> + <code>Height</code>. Then this node returns a [[Type:Rect|rect]] [[Value Type|value]] that has the min and max provided. | The '''Rect From Min Max''' node takes in 2 specific [[Type:float2|float2]] values, giving the minimum size of the rect, usually just at the <code>X</code> and <code>Y</code> position, and also needing the max size of this rect, which is usually <code>X</code> + <code>Width</code> and <code>Y</code> + <code>Height</code>. Then this node returns a [[Type:Rect|rect]] [[Value Type|value]] that has the min and max provided. In contrast to the [[ProtoFlux:Rect From Position Size|Rect From Position Size]] node where it takes the literal position and size to get a rect's bounding data. | ||
{{Note|If you need the min and max values from a rect, use the [[ProtoFlux:Rect To Min Max|Rect To Min Max]] node instead. | {{Note|If you need the min and max values from a rect, use the [[ProtoFlux:Rect To Min Max|Rect To Min Max]] node instead. |
Latest revision as of 10:18, 30 June 2024
Rect From Min 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.
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.