Skip to main content

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"

ParamTypeDescription
x0number
y0number
z0number
x1number
y1number
z1number
origin_xnumber
origin_ynumber
origin_znumber
inv_direction_xnumber1/ direction_X
inv_direction_ynumber1/ direction_Y
inv_direction_znumber1/ direction_Z
min_distancenumber
max_distancenumber