3D Billiard Loop in a Rectangular Box

This Demonstration shows a path of a billiard ball in a 3D box that returns to its starting point, hitting each face once.
This is equivalent to a light beam looping inside a mirror box.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


To ensure a closed path in a rectangular box, the direction from the starting point (red point) needs to be parallel to a space diagonal.
Since the path does not depend on the coordinate system, all parts of the path are parallel to one space diagonal.
The length of the path is twice the length of a space diagonal.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.