aabb2_intersects_ray
aabb2_intersects_ray(x0, y0, x1, y1, origin_x, origin_y, direction_x, direction_y) ⇒ boolean
Kind: global function
Returns: boolean
- true if hit found and false otherwise
Param | Type |
---|---|
x0 | number |
y0 | number |
x1 | number |
y1 | number |
origin_x | number |
origin_y | number |
direction_x | number |
direction_y | number |