Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Relations » TestPointArrayInBox
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Tests which points lie inside a box.
Syntax
C++
C#
void fil::TestPointArrayInBox ( const ftl::Array<fil::Point2D>& inPoints, const fil::Box& inBox, ftl::Array<bool>& outIsContainedArray, ftl::Optional<ftl::Array<fil::Point2D>&> outPoints = ftl::NIL, ftl::Optional<bool&> outAreAllContained = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | Points which will be tested | |
![]() |
inBox | const Box& | ||
![]() |
outIsContainedArray | Array<bool>& | ||
![]() |
outPoints | Optional<Array<Point2D>&> | NIL | Points that are contained |
![]() |
outAreAllContained | Optional<bool&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outPoints, outAreAllContained.
Read more about Optional Outputs.