Well, it could have been way worse a day- somebody could have gotten hurt!
You are lucky!

Right of way is fine and dandy, but....always, always assume the car driver does NOT see you, and assume that they are going to do the WRONG thing.