SNAP POINT TO STREAM FLOWLINE

streamsnap(pt, mat)

Arguments

pt

is a coordinate pair (numeric vector)

mat

is a numeric matrix representing the stream path

Value

the point on the stream path closest to pt