Calculates the distance between the start and end of a 3-dimensional trajectory (or a portion of a trajectory). Also called the diffusion distance, net distance, displacement, or bee-line from start to finish.
Traj3DDistance(trj3d, startIndex = 1, endIndex = nrow(trj3d))
Numeric distance from the start to the end of the trajectory.
3-dimensional trajectory whose distance is to be calculated.
Index of the starting point.
Index of the ending point.
Traj3DFromCoords