cart2pol

mmtwfs.zernike.cart2pol(arr)[source] [edit on github]

Convert array of [x, y] vectors to [rho, theta]

Parameters
arrndarray

2D array with x vector as 0th element and y vector as 1st element.

Returns
polarrndarray

2D array with rho as the 0th element and theta as the 1st element.