shg_query_elements_circle
Functions
unit_square_intersects_circle(square_center_x, square_center_y, circle_center_x, circle_center_y, circle_radius) ⇒ boolean
Kind: global function
See: https://stackoverflow.com/questions/47639413/algorithm-for-accurate-detection-of-overlap-between-a-square-and-a-circle
| Param |
|---|
| square_center_x |
| square_center_y |
| circle_center_x |
| circle_center_y |
| circle_radius |
shg_query_elements_circle(result, result_offset, grid, center_x, center_y, radius) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| result | Array.<number> |
| result_offset | number |
| grid | SpatialHashGrid |
| center_x | number |
| center_y | number |
| radius | number |