R/wrap_add_waypoints.R
add_waypoints.Rd
Add or create waypoints to a trajectory
Waypoints are spread equally over the whole trajectory
add_waypoints(trajectory, n_waypoints = 100, resolution = sum(trajectory$milestone_network$length)/n_waypoints) is_wrapper_with_waypoints(trajectory) select_waypoints(trajectory, n_waypoints = 100, resolution = sum(trajectory$milestone_network$length)/n_waypoints)
trajectory | The trajectory as created by |
---|---|
n_waypoints | The number of waypoints |
resolution | The resolution of the waypoints, measured in the same units as the lengths of the milestone network edges, will be automatically computed using n_waypoints |