URL: https://graphicscomputing.fr/cgp/reference/trajectory_drawable/
Description: Trail of the last positions of a moving point, drawn as a curve.

# trajectory_drawable

Trail of the last positions of a moving point, drawn as a curve.

Fields:

- `numarray<vec3> position_record` - Recorded positions, the most recent first, allocated to N_max_sample points at the first call to add.
- `curve_drawable visual` - Curve drawable displaying the first current_size recorded positions, red by default; its color and model can be set at any time, also before the first add.
- `size_t N_max_sample` - Maximal number of positions kept in the trajectory, 100 by default.
- `size_t current_size` - Number of valid positions recorded so far, at most N_max_sample.

Functions taking it:

- `void draw(trajectory_drawable const& drawable, environment_generic_structure const& environment)` - Draw the recorded positions of a trajectory_drawable as a polyline, if any.
