A radar gun is a handheld or mounted device that uses Doppler radar to measure the speed of a moving object. By sending out radio waves and analyzing how they bounce back after hitting a moving object, the radar gun calculates the speed based on the frequency change of the returned signal.