Finding the intersection of 2 arbitrary cubes in 3d
问题 So, I'd like to figure out a function that allows you to determine if two cubes of arbitrary rotation and size intersect. If the cubes are not arbitrary in their rotation (but locked to a particular axis) the intersection is simple; you check if they intersect in all three dimensions by checking their bounds to see if they cross or are within one another in all three dimensions. If they cross or are within in only two, they do not intersect. This method can be used to determine if the