Illustrating a 3D rotation trigonometry formula that can be used in 3D programming.
A 3D ASCII cube rotating inside a 100x100x100 pixel-space / 3D matrix.

O
O
O
O
O
O
O
O
Rotate X [+-]
Rotate Y [+-]
Rotate Z [+-]

Smooth [+-]

3D Rotation Trig © 2007
Created by Dag Jonny Nedrelid