A Treatise on the Analytical Dynamics of Particles and Rigid Bodies