  We study the Hamiltonian dynamics of a charged particle submitted to a pure
magnetic field in a two-dimensional domain. We provide conditions on the
magnetic field in a neighbourhood of the boundary to ensure the confinement of
the particle. We also prove a formula for the scattering angle in the case of
radial magnetic fields.
