pathRelPos: Relative position on a path

View source: R/z_path.R

pathRelPosR Documentation

Relative position on a path

Description

Relative position of each coordinates (knots) along a path (polyline).

Usage

pathRelPos(xy, lonlat = FALSE)

Arguments

xy

[matrix] Each column corresponding to a coordinate

lonlat

[logical(1)] If TRUE computes geodistance. Otherwise Euclidean distance.

Value

Relative position of the coordinates (cumulative distance).


emanuelhuber/RGPR documentation built on Feb. 20, 2025, 6:13 a.m.