Transform between spherical <-> cartesian and cylindrical <-> cartesian systems.