This is a simpe spinning cube. It doesn't use any type of GUI, it only uses the terminal interface and ASCII.
The formulas used in this programs are the following:
Rotation matrix (more info on wikipedia):
Distance between 2 points:
3d line equation: