PathDist: Compute Length of a path

View source: R/PathDist.R

PathDistR Documentation

Compute Length of a path

Description

This function computes the length of a path. It does so by summing each consecutive line segment.

Usage

PathDist(path)

Arguments

path

A two-column matrix describing the x,y coordinates of a path.

Value

returns a scalar value indicating path length.

Author(s)

Shane T. Mueller and Brandon Perelman

References

See Mueller et al., (2016). https://sites.google.com/a/mtu.edu/mapping/


stmueller/pathmapping documentation built on Nov. 13, 2023, 12:39 p.m.