rigid_body_motion.cartesian_to_polar¶
- rigid_body_motion.cartesian_to_polar(arr, axis=- 1)[source]¶
Transform cartesian to polar coordinates in two dimensions.
- Parameters
- arrarray_like
Input array.
- axisint, default -1
Axis of input array representing x and y in cartesian coordinates. Must be of length 2.
- Returns
- arr_polararray_like
Output array.