Extract translation (position) from a 4x4 transformation matrix.
(matrix: np.ndarray)
| 173 | |
| 174 | |
| 175 | def get_position(matrix: np.ndarray) -> np.ndarray: |
| 176 | """Extract translation (position) from a 4x4 transformation matrix.""" |
| 177 | return matrix[:3, 3].copy() |
| 178 | |
| 179 | |
| 180 | def yup_to_zup(pos: np.ndarray) -> np.ndarray: |
no test coverage detected