I am having a total mind blank on this at the moment.
I have a cube (voxel) that is defined by a centre point and a width, height and depth of 1. If I have a vector with an origin from the centre of the box (E.g. (-0.7,-0.7, -0.7)) how do I calculate the point at which the vector intersects the outside of the box?
EDIT: The box is always aligned to the axis. The problem is in 3d.
Thanks