aabb3_intersects_ray
aabb3_intersects_ray(x0, y0, z0, x1, y1, z1, origin_x, origin_y, origin_z, direction_x, direction_y, direction_z) ⇒ boolean
NOTES: https://web.archive.org/web/20090803054252/http://tog.acm.org/resources/GraphicsGems/gems/RayBox.c https://tavianator.com/fast-branchless-raybounding-box-intersections/ https://gamedev.stackexchange.com/questions/18436/most-efficient-aabb-vs-ray-collision-algorithms
Kind: global function
Param | Type |
---|---|
x0 | number |
y0 | number |
z0 | number |
x1 | number |
y1 | number |
z1 | number |
origin_x | number |
origin_y | number |
origin_z | number |
direction_x | number |
direction_y | number |
direction_z | number |