You are here: Start » FIL.NET » Function Reference » Path » Polygon Relations » FIL.TestPolygonInPolygon

FIL.TestPolygonInPolygon

Tests whether a polygon lies inside another one.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void TestPolygonInPolygon
(
	FilNet.Path inSubPolygon,
	FilNet.Path inPolygon,
	out bool outIsContained
)

Parameters

Name Type Range Default Description
inSubPolygonFilNet.PathPolygon the position of which will be tested.
inPolygonFilNet.PathPolygon against which the position will be tested.
outIsContainedboolTrue if whole polygon lies inside the other one, false otherwise.

Description

The operation tests if inSubPolygon lies (in its entirety) inside inPolygon.

Due to inaccuracy of floating point representation a point lying extremely close to a path may considered to be on either of the sides of the path or exactly on the path itself.

Errors

List of possible exceptions:

Error type Description
DomainError Empty path on input (inSubPolygon) in TestPolygonInPolygon.
DomainError Open path on input in TestPolygonInPolygon.

See also