shg_query_elements_line
shg_query_elements_line(result, result_offset, grid, x0, y0, x1, y1) ⇒ number
Note that line coordinates MUST lie within the grid
Kind: global function
Returns: number
- number of elements added to result array
Param | Type | Description |
---|---|---|
result | Array.<number> | |
result_offset | number | |
grid | SpatialHashGrid | |
x0 | number | first line point X |
y0 | number | first line point Y |
x1 | number | second line point X |
y1 | number | second line point Y |