Created a page for the Encapsulate Rect node. |
Added a suggestion note. |
||
Line 14: | Line 14: | ||
The '''Encapsulate Rect''' node takes in 2 [[Type:Rect|rect]] [[Value Type|values]], and returns a rect that encapsulates both of them into one rect. | The '''Encapsulate Rect''' node takes in 2 [[Type:Rect|rect]] [[Value Type|values]], and returns a rect that encapsulates both of them into one rect. | ||
{{Note|If you need to check for masking/cliping of 2 rects, use the [[ProtoFlux:Clip Rect|Clip Rect]] node instead.|suggestion}} | |||
== Inputs == | == Inputs == |
Revision as of 15:09, 30 June 2024
Encapsulate Rect
Rects
The Encapsulate Rect node takes in 2 rect values, and returns a rect that encapsulates both of them into one rect.
Inputs
A (Rect)
The first rect.
B (Rect)
The second rect.
Outputs
Rect (Rect)
Returns the encapsulated rect from the 2 provided rects.
Examples
-
An example of the Encapsulate Rect node in action, drawn out using Debug Line nodes, Rect 1 = Red, Rect 2 = Green, Rect 3 = Blue.
-
Some code that draws 3 rects (using Debug Line nodes), Rect 1 = Red, Rect 2 = Green, Rect 3 = Blue.