snap: snap point

Description Usage Arguments Value

View source: R/spat.R

Description

finds the nearest point on a line path to a given point. does not interpolate betweens points on line to find a local minimum.

Usage

1
snap(pt, line = nodepath)

Arguments

pt

is a coordinate pair

line

is a matrix with rows (x,y) specifying a line path

Value

point on 'line' closest in position to 'pt'


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.