Learn R Programming

trajr (version 1.5.1)

Traj3DLength: 3D trajectory length

Description

Calculates the cumulative length of a 3-dimensional trajectory, or a portion of a trajectory. The length is the total distance travelled along the trajectory.

Usage

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

Value

Numeric length of the trajectory.

Arguments

trj3d

3D trajectory whose length is to be calculated.

startIndex

Index of the starting point.

endIndex

Index of the ending point.

See Also

Traj3DFromCoords, Traj3DStepLengths, TrajLength