Using Chrono for measuring time.
Using #pragma once as include guard.
Calculating the squared minimum distance when testing if the motion has stopped.
Renamed the sign function.
Minor clean up in velocity function.
Const reference to Domain when calling inside_domain.
Renamed the motion initialization functions to something meaningful.