Extract translation (position) from a 4x4 transformation matrix.
(matrix: np.ndarray)
| 94 | |
| 95 | |
| 96 | def get_position(matrix: np.ndarray) -> np.ndarray: |
| 97 | """Extract translation (position) from a 4x4 transformation matrix.""" |
| 98 | return matrix[:3, 3] |
| 99 | |
| 100 | |
| 101 | def swap_yz(point: np.ndarray) -> np.ndarray: |
no outgoing calls
no test coverage detected