I happened to choose a flat manifold \\(M\\), but curved manifolds are of course valid as well, and give more interesting scenarios. For example, the trajectories might take place on the surface of a torus.