It is called a "right hook" where a motorist rushes to pass a cyclist and immediately turns across the cyclist path. The truck driver was at fault.
To avoid the problem, as noted above, as you approach an intersection, move to the middle of the traffic lane (stay out of the bike lane at intersections) and ignore the jerk's honking.
Next time a motorist hits you, may I suggest you write down the license plate # and report a hit and run to the police.