Checks for each 2D point whether it is inside of a rectangle.
points - Float32Array of size (point count * 2). 2D points to check
points
pointsShape - Should be {2, point count, 1}
pointsShape
rect - 2D rectangle points will be checked against
rect
output - Uint8Array of size (point count). For each point, this will be filled with 1 if the point is inside the rectangle, or 0 otherwise.
output
Checks for each 2D point whether it is inside of a rectangle.
points
- Float32Array of size (point count * 2). 2D points to checkpointsShape
- Should be {2, point count, 1}rect
- 2D rectangle points will be checked againstoutput
- Uint8Array of size (point count). For each point, this will be filled with 1 if the point is inside the rectangle, or 0 otherwise.