Skip to main content
4 of 9
added 45 characters in body

Looking for a cylinder / axis-aligned box intersection test

Given:

  • An arbitrary cylinder (defined by startpoint, endpoint, and radius). An Infinite cylinder is acceptable as well, as long as it passes through those points and has the same radius.
  • An axis-aligned box (defined by its minimum and maximum point)

To test if the cylinder and the box intersect.

Does such a test exist?

EDIT: I found this on the mathmatics stack exchange, though at the moment I do not follow it. If there is an example of it in code form that would be fantastic.