You are here: Start » AVL.NET » AVL.TestShapeInShape(AvlNet.Path, AvlNet.Path, bool)
AVL.TestShapeInShape(AvlNet.Path, AvlNet.Path, bool)
Tests whether a shape lies inside another one.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void TestShapeInShape( AvlNet.Path inSubShape, AvlNet.Path inShape, out bool outIsContained )
Parameters
- inSubShape
- Type: AvlNet.Path
Shape the position of which will be tested - inShape
- Type: AvlNet.Path
Shape against which the position will be tested - outIsContained
- Type: System.Boolean
True if whole shape lies inside the other one, false otherwise
Description
The operation tests if inSubShape lies (in its entirety) inside inShape.
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
| Error type | Description |
|---|---|
| DomainError | Open path on input in TestShapeInShape. |
| DomainError | Empty path on input (inSubShape) in TestShapeInShape. |
