Calculates the distance and angle between each point of a path

dist_along_path_angle(data_df)

Arguments

data_df

(n x 2) data.frame, each row is a pair of values (x,y), assumes rows are ordered in path

Value

distance

vector of distances beween points (n - 1)

angle

vector of angle change between points (n - 1) - in radians