nearestPointOnSegment: Nearest point on segment

View source: R/geometrical_functions_sf.R

nearestPointOnSegmentR Documentation

Nearest point on segment

Description

Find the nearest projected point on a segment (from maptools)

Usage

nearestPointOnSegment(s, p)

Arguments

s

The coordinates of the segment

p

The coordinates of the point

Value

A numeric vector with the coordinates of the projected point

Examples

#This is an internal function, no example provided

spNetwork documentation built on Aug. 24, 2023, 5:10 p.m.