Constructors are functions that create trajectory objects from JSON or arrays, and append data to trajectories.