SCARY!
It would be better to take a different route. Actually, you did not do too bad. I've heard that standing your ground and being a barrier between you and your dog, and telling the dog in a firm voice NO, or GO HOME can work. I'd hate to be in the position to have to try it though.
Thank goodness the rottie was just wanting to meet both of you.