Transform the velocity in a rotating barycentric frame.

Fix #304.