Generalized Landau–Lifshitz–Gilbert equation for uniformly magnetized bodies