Back to FabImage Library website


You are here: Start » Function Reference » Geometry 2D » Geometry 2D Relations » TestPointInRectangle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Tests whether a point lies in a rectangle.
Syntax
C++
C#
void fil::TestPointInRectangle ( const fil::Point2D& inPoint, const fil::Rectangle2D& inRectangle, bool& outIsContained )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoint | const Point2D& | ||
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
outIsContained | bool& |
Examples

TestPointInRectangle performed on the sample rectangle and point. outIsContained = True.

TestPointInRectangle performed on the sample rectangle and point. outIsContained = False.