Learn R Programming

spNetwork (version 0.2.1)

nearestPointOnSegment: 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

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab