Function: inbox

Syntax

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

Type

numeric

Returns

Whether a point is within a 3-D box defined by two points: 1 if it is inside, 0 if it is outside.

Parameters

Examples

The following returns the value 1.

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

The following returns the value 0.

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

See Also

Functions:

bmatch (numeric), inbox2d (numeric), inpoly (numeric)