I've had the same thing happen. Crazy, and dangerous -- potential for a car to strike a cyclist in a maneuver like this is quite high. This is reckless driving.
One of the few times I've been truly rattled on my commute.
And like you, I was pxxx off!