An ecological analysis of binocular vision