Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Relations » TestPointInRectangle

TestPointInRectangle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Tests whether a point lies in a rectangle.

Syntax

C++
C#
 
void avl::TestPointInRectangle
(
	const avl::Point2D& inPoint,
	const avl::Rectangle2D& inRectangle,
	bool& outIsContained
)

Parameters

Name Type Default Description
Input value inPoint const Point2D&
Input value inRectangle const Rectangle2D&
Output value outIsContained bool&

Examples

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


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