Circular motion of charged particles in a magnetic field