Rotates a vector by the given quaternion.
(vec, quat)
| 40 | |
| 41 | |
| 42 | def _rotate_vector(vec, quat): |
| 43 | """Rotates a vector by the given quaternion.""" |
| 44 | result = np.empty_like(vec) |
| 45 | mjbindings.mjlib.mju_rotVecQuat(result, vec, quat) |
| 46 | return result |
| 47 | |
| 48 | |
| 49 | class _ObservableKeys: |
no outgoing calls
no test coverage detected
searching dependent graphs…