Skip to main content

shg_query_elements_circle

Functions

unit_square_intersects_circle(square_center_x, square_center_y, circle_center_x, circle_center_y, circle_radius)boolean
shg_query_elements_circle(result, result_offset, grid, center_x, center_y, radius)number

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

ParamType
resultArray.<number>
result_offsetnumber
gridSpatialHashGrid
center_xnumber
center_ynumber
radiusnumber