imas_paraview.util.cart_to_pol

imas_paraview.util.cart_to_pol(x, y)

Convert from cartesian to polar coordinates.

Parameters:
x

the distance in the x-direction

y

the distance in the y-direction

Returns:

Tuple containing the r and phi coordinates


Last update: 2026-03-11