You are here: Start » AVL.NET » AVL.TestPointInShape(AvlNet.Point2D, AvlNet.Path, bool)

AVL.TestPointInShape(AvlNet.Point2D, AvlNet.Path, bool)

Tests whether a point lies inside a shape.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void TestPointInShape(
	AvlNet.Point2D inPoint,
	AvlNet.Path inShape,
	out bool outIsContained
)

Parameters

inPoint
Type: AvlNet.Point2D
Point 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 point lies inside the shape, false otherwise

Description

The operation tests if inPoint lies 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.

Examples

TestPointInShape run on the sample data produces the outIsContained = true

TestPointInShape run on the sample data produces the outIsContained = false

Errors

Error type Description
DomainError Open path on input in TestPointInShape.

See also