aabb3_intersects_ray_segment
aabb3_intersects_ray_segment(x0, y0, z0, x1, y1, z1, origin_x, origin_y, origin_z, inv_direction_x, inv_direction_y, inv_direction_z, min_distance, max_distance) ⇒ boolean
Kind: global function
See: Ray Tracing Gems II, Chapter 2 "RAY AXIS-ALIGNED BOUNDING BOX INTERSECTION"
Param | Type | Description |
---|---|---|
x0 | number | |
y0 | number | |
z0 | number | |
x1 | number | |
y1 | number | |
z1 | number | |
origin_x | number | |
origin_y | number | |
origin_z | number | |
inv_direction_x | number | 1/ direction_X |
inv_direction_y | number | 1/ direction_Y |
inv_direction_z | number | 1/ direction_Z |
min_distance | number | |
max_distance | number |