Heres a 3D engine that fit into one screen You define the x,y,z coordinates of each point, then you rotate them around their origin (0,0,0) on the x,y, or z plane, then you draw them