def set_camera_translation_vector_after_rotation(
        self, translation_vector, check_rotation=True
    ):
        """Set the camera translation after setting the camera rotation."""
        if check_rotation:
            assert is_rotation_mat(self._rotation_mat)
        self._translation_vec = translation_vector
        # C = -R^T t
        self._center = -np.dot(
            self._rotation_mat.transpose(), translation_vector
        )
Set the camera translation after setting the camera rotation.
photogrammetry_importer/types/camera.py