You are here: Start » AVL.NET » Function Reference » Region » Region Relations » AVL.TestRegionInRegion

AVL.TestRegionInRegion

Tests whether a region is contained in another one.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TestRegionInRegion
(
	AvlNet.Region inSubregion,
	AvlNet.Region inRegion,
	out bool outIsContained
)

Parameters

Name Type Range Default Description
inSubregionAvlNet.Region
inRegionAvlNet.RegionInput region.
outIsContainedbool

Description

The operation tests whether the inSubregion is contained inside the inRegion. The resulting outIsContained is set to 'true' if and only if each pixel of inSubregion is also included in inRegion.

Examples

TestRegionInRegion run with inSubregion set to the left region and inRegion set to the right, computes the outIsContained = true.

TestRegionInRegion run with inSubregion set to the left region and inRegion set to the right, computes the outIsContained = false.

See also