V_cartTOsphere

V_cartTOsphere converts the Cartesian coordinates (x, y, z), stored in the in array, into spherical coordinates (r, phi, theta), stored in the out array.

Element

Direction

Remark

in::continuous [3]

input

input array; contains the Cartesian coordinates x, y and z

out::continuous [3]

output

output array; contains the polar coordinates r (radius), phi (azimuth angle in radian) and theta (polar angle or inclination in radian)