I\'m looking for an algorithm that determines the near and far intersection points between a line segment and an axis-aligned box.
Here is my method definition:
Well, for an axis-aligned box it's pretty simple: you have to find intersection of your ray with 6 planes (defined by the box faces) and then check the points you found against the box vertices coordinates limits.