def set_rotation_with_quaternion(self, quaternion):
        """Set the camera rotation using a quaternion."""
        self._quaternion = quaternion
        # We must change the rotation matrixes as well.
        self._rotation_mat = Camera.quaternion_to_rotation_matrix(quaternion)
Set the camera rotation using a quaternion.
photogrammetry_importer/types/camera.py