Identifiying the next point on the surface of a cube

Viewed 562

I have a cube of unit length. Each face of the cube is divided into 10 x 10 segments. Consider an object of size equal to that of a segment moving through the surface of the cube.

I need to compute a way to find the next segment in the cube given the direction of the object.

4 Answers
Related