make cart2sph work with scalars
create 3D perspective window class