/3d-cube

A dumb CLI program that draws a 3D on your terminal

Primary LanguagePython

3d-cube

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):

Rotation formula

Distance between 2 points:

Distance between 2 points

3d line equation:

3d line equation

Demonstration

Gif of spinning cube