You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Relations » AVL.TestPointInRectangle
Tests whether a point lies in a rectangle.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void TestPointInRectangle ( AvlNet.Point2D inPoint, AvlNet.Rectangle2D inRectangle, out bool outIsContained )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoint | AvlNet.Point2D | |||
![]() | inRectangle | AvlNet.Rectangle2D | |||
![]() | outIsContained | bool |
Examples
![](../img/filters/TestPointInRectangle1.png)
TestPointInRectangle performed on the sample rectangle and point. outIsContained = True.
![](../img/filters/TestPointInRectangle2.png)
TestPointInRectangle performed on the sample rectangle and point. outIsContained = False.