Transform trajectories to new coordinate frames