Back to Adaptive Vision Library website
You are here: Start » Function Reference » Shape Relations » TestPointInShape
TestPointInShape
Tests whether a point lies inside a shape.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::TestPointInShape ( const avl::Point2D& inPoint, const avl::Path& inShape, bool& outIsContained )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPoint | const Point2D& | Point the position of which will be tested | ||
inShape | const Path& | Shape against which the position will be tested | ||
outIsContained | bool& | 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
Errors
Error type | Description |
---|---|
DomainError | Open path on input in TestPointInShape. |
See Also
- TestShapeInShape – Tests whether a shape lies inside another one.