Perceiving environmental structure from optical motion