A vector of complex numbers representing the velocity at each point
along the trajectory. The modulus (Mod(v)
) is the magnitude of the
velocity, i.e. the speed; the argument (Arg(v)
) is the direction of
the velocity; the real part (Re(v)
) is velocity in the X direction;
and the imaginary part (Im(v)
) is velocity in the Y direction. The
vector has an attribute, trj
, with the trajectory as its value. If
diff
is "central"
, the first and last velocity values are
NA
since velocity cannot be calculated for them. If diff
is
"forward"
, the last value will be NA, and if diff
is
"backward"
, the first value will be NA.