>>12228809What they're doing here is pretty simple. Tracing rays from the viewer to the object should be self-explanatory. Their intersection with the picture plane determines their horizontal position.
The stuff with two vanishing points is an entirely separate operation on the vertical dimensions of the object. It works with the cube because the cube's distance from the viewer is directly related to the distance along the horizon line from the vertex.