[−][src]Module geomath::trajectory
Trajectory structures and documentation
A trajectory is a circular buffer containing vectors. It can be seen as the trajectory of a moving point, in this case, the vectors are the position vectors of the point.
Note : Use the method push
to add a point to a trajectory.
Purpose
This abstraction aims represent only the last points of a complete trajectory. It's main purpose is to allow drawing a trajectory consistently without allocating new space each time a point is added.
Conventions
- All the trajectories have the same fixed size
- Vector space operations can be performed between trajectories
- Translation can be performed with a vector using
+
and-
operators - Scaling can be performed using
*
and/
operators - When adding a point to a trajectory, the oldest point is erased
Modules
consts | constant trajectories |
Structs
Trajectory | Generic structure and documentation for trajectories |
Type Definitions
Trajectory2 | 2D trajectory |
Trajectory3 | 3D trajectory |
Trajectory4 | 4D trajectory |