Brain Dump

Ray Box Intersection

Tags
computer-graphics

A [see page 13, way] of detecting the intersection between a box and a line.

Uses each corner of the box to define two planes and then for each pair of planes we calculate where the line intersects that each plain. Then there's an equation we can use to detect whether the line intersected the box depending on the largest and smallest value of each intersection to each plain.

Links to this note