Quite honestly you should have been given the "felony stop treatment where the officer with gun drawn orders you out of the vehicle and has you lay down for frisking. This is on the basis of you were in the wrong place at the wrong time. The walking up with gun pointed at your head is just not good procedure too many chances of accidents.
Stay well - stay safe - Stay armed - Yorktown
They endanger themselves and the suspects whom in most cases these days turn out to be innocent.
Stay Safe !!!