aspcol.utilities.cart2pol
- aspcol.utilities.cart2pol(x, y)
Transforms the provided cartesian coordinates to polar coordinates
- Parameters:
x (float or ndarray of shape (num_points,)) – x coordinate
y (float or ndarray of shape (num_points,)) – y coordinate
- Returns:
r (float or ndarray of shape (num_points,)) – radius
angle (float or ndarray of shape (num_points,)) – angle in radians. 0 is the x-direction, pi/2 is the y-direction