Function: inbox2d

Syntax

inbox2d (<point>,<point1>,<point2>)

Type

numeric

Returns

Whether a point is within a 2-D box defined by two points: 1 if it is inside, 0 if it is outside. Although the points can be 3-D points only the x and y ordinates are considered during calculations.

Parameters

Examples

The following returns the value 1.

numeric in = inbox2d(p0,(-50,-50),(50,50))

The following returns the value 0.

numeric in = inbox2d(p0,(50,50),(60,60))

See Also

Functions:

bmatch (numeric), inbox (numeric), inpoly (numeric)