ray cube intersection works