Traj3DResampleTime: Resample a 3D trajectory to a constant time interval

View source: R/3D.R

Traj3DResampleTimeR Documentation

Resample a 3D trajectory to a constant time interval

Description

Constructs a new 3-dimensional trajectory by resampling the input trajectory to a fixed time interval. Points are linearly interpolated along the trajectory. Spatial and time units are preserved.

Usage

Traj3DResampleTime(trj3d, stepTime, newFps = NULL)

Arguments

trj3d

The 3-dimensional trajectory to be resampled.

stepTime

The resampled trajectory step time. Each step in the new trajectory will have this duration.

newFps

Value to be stored as the FPS value in the new trajectory (see TrajGetFPS). It is not otherwise used by this function.

Value

A new 3-dimensional trajectory with a constant time interval for each step. Points in the new trajectory are calculated by linearly interpolating along trj3d.

See Also

Traj3DFromCoords, TrajResampleTime


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