Back to FabImage Library Lite website

You are here: Start » Region » Region Relations » TestPointInRegion

TestPointInRegion


Header: FIL.h
Namespace: fil

Tests whether a point lies inside a region.

Syntax

void fil::TestPointInRegion
(
	const fil::Point2D& inPoint,
	const fil::Region& inRegion,
	bool& outIsContained
)

Parameters

Name Type Default Description
inPoint const Point2D&
inRegion const Region& Input region
outIsContained bool&

Examples

TestPointInRegion run on the sample data produces the outIsContained = true

TestPointInRegion run on the sample data produces the outIsContained = false