Can a cop shine his spot light straight into your windshield?

Had this happen a while back. I was trying to pull out of my street and a patrol car with no lights on was parked at the end in the dark. Other officers were standing in the grass off to the side talking to the neighbors so as soon as I was about to get out and ask if it was okay to go through since it was the only way out. It was obviously some kind of family domestic dispute or something, but why did the cop shine his vehicle spot light through my windshield when I still had the vehicle in drive? I couldn't even see to put my car in park. I had just had my prescription redone on my contacts and it needed to be done again after that. Still needs to be redone.
Updates
+1 y
I should have pressed assault charges but I guess it's too late for that now...
Can a cop shine his spot light straight into your windshield?
Post Opinion