Transform Cartesian to polar or cylindrical coordinates. x, y (and z) must be the same shape, or scalar. theta describes the angle relative to the positive x-axis. r is the distance to the z-axis (0, 0, z).
Transform polar or cylindrical to Cartesian coordinates. theta, r (and z) must be the same shape, or scalar. theta describes the angle relative to the positive x-axis. r is the distance to the z-axis (0, 0, z).
Transform Cartesian to spherical coordinates. x, y and z must be the same shape, or scalar. theta describes the angle relative to the positive x-axis. phi is the angle relative to the xy-plane. r is the distance to the origin (0, 0, 0).