IDL Programming > Objects > Analysis Object Classes > IDLanROIGroup::ContainsPoints

IDLanROIGroup::ContainsPoints

Syntax | Return Value | Arguments | Keywords | Version History

The IDLanROIGroup::ContainsPoints function method determines whether the given points (in data coordinates) are contained within this region group.

The regions within this group must have a TYPE of 2 (closed polygon) and must fall on parallel planes for successful containment testing to occur.

For each point to be tested:

On a given plane, a point will be considered to be exterior if either of the following conditions are true:

Syntax

Result = Obj->[IDLanROIGroup::]ContainsPoints( X[, Y[, Z]] )

Return Value

The return value is a vector of values, one per provided point, indicating whether that point is contained. Valid values within this return vector include:

Arguments

X

A vector providing the X components of the points to be tested. If the Y and Z arguments are not specified, X must be a two-dimensional array with the leading dimension either 2 or 3 ([2,*] or [3,*]), in which case, X[0,*] represents the X values, X[1,*] represents the Y values, and X[2,*] represents the Z values.

Y

A vector providing the Y components of the points to be tested.

Z

A scalar or vector providing the Z components of the points to be tested. If not provided, the Z components default to 0.0.

Keywords

None.

Version History

5.3

Introduced