equirectangular panorama into 6 cube faces?


we need to make equirectangular panoramas into 6 cube faces.
A pointer please?


i assume this is a graphical output/ representation - any other representation makes less sense…?

in other words, the output is a drawing or rendering, as opposed to an ordinary matrix/ array?

Completely outside my area of expertise, but maybe this question on Stackoverflow is relevant (first page suggested by a simple Google search):