added trajectory retiming support for visualizing trajectories