The principle of virtual velocities