inbox2d (<point>,<point1>,<point2>)
numeric
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.
<point>
Point to test.
<point1>
Minimum corner of the 2-D box.
<point2>
Maximum corner of the 2-D box.
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))
Functions: |