A baseball player is swinging at a baseball thrown by a pitcher .