Just for the record, here is the SAT based solution:

http://www.euclideanspace.com/threed...ions/index.htm

If you know your vector math, it's actually pretty easy!