Convert 4d quaternion to 3d vector of axis-angle rotation. Shape: - Input: :Torch:`(..., 4)` - Output: :Torch:`(..., 3)`
(quaternion)
| 80 | return axis_angle |
| 81 | |
| 82 | def quaternion_to_axis_angle(quaternion): |
| 83 | """ |
| 84 | Convert 4d quaternion to 3d vector of axis-angle rotation. |
| 85 | Shape: |
| 86 | - Input: :Torch:`(..., 4)` |
| 87 | - Output: :Torch:`(..., 3)` |
| 88 | """ |
| 89 | angle_axis = tgm.quaternion_to_angle_axis(quaternion) |
| 90 | return angle_axis |
| 91 | |
| 92 | def axis_angle_to_quaternion(angle_axis): |
| 93 | """ |
no outgoing calls
no test coverage detected