Traj3DDistance: 3D Trajectory distance

View source: R/3D.R

Traj3DDistanceR Documentation

3D Trajectory distance

Description

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.

Usage

Traj3DDistance(trj3d, startIndex = 1, endIndex = nrow(trj3d))

Arguments

trj3d

3-dimensional trajectory whose distance is to be calculated.

startIndex

Index of the starting point.

endIndex

Index of the ending point.

Value

Numeric distance from the start to the end of the trajectory.

See Also

Traj3DFromCoords


trajr documentation built on July 9, 2023, 6:03 p.m.