# Voxel Iteration

Given a ray, source + t*direction, you initialize the iterator with the value of t required to get to the next voxel along each axis. For every iteration, you take the smallest t value and iterate the voxel index along that axis. For example, if we're at <5, -2, 4> and the smallest value for t is along the y-axis, we'll move to <5, -1, 4> or <5, -3, 4>, based on which direction the ray is moving along the y-axis. We then update the value of t to move to the next voxel along the y-axis.