ProtoFlux:EncapsulateRect: Difference between revisions

From Resonite Wiki
Created a page for the Encapsulate Rect node.
 
m YoshBot moved page ProtoFlux:Encapsulate Rect to ProtoFlux:EncapsulateRect: Automated: removing spaces from ProtoFlux namespace
 
(2 intermediate revisions by one other user not shown)
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 ==
Line 27: Line 29:
== Outputs ==
== Outputs ==


=== Rect ([[Type:Rect|Rect]]) ===
=== * ([[Type:Rect|Rect]]) ===


Returns the encapsulated rect from the 2 provided rects.
Returns the encapsulated rect from the 2 provided rects.

Latest revision as of 23:51, 20 August 2025

Encapsulate Rect
A
*
B
Rects

The Encapsulate Rect node takes in 2 rect values, and returns a rect that encapsulates both of them into one rect.

If you need to check for masking/cliping of 2 rects, use the Clip Rect node instead.

Inputs

A (Rect)

The first rect.

B (Rect)

The second rect.

Outputs

* (Rect)

Returns the encapsulated rect from the 2 provided rects.

Examples