rigid_body_motion.spherical_to_cartesian
- rigid_body_motion.spherical_to_cartesian(arr, axis=-1)[source]
Transform spherical to cartesian coordinates in three dimensions.
The spherical coordinate system is defined according to ISO 80000-2.
- Parameters:
- arrarray_like
Input array.
- axisint, default -1
Axis of input array representing r, theta and phi in spherical coordinates. Must be of length 3.
- Returns:
- arr_cartesianarray_like
Output array.