Learn R Programming

spNetwork (version 0.4.4.6)

nearestPointOnSegment: Nearest point on segment

Description

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

Usage

nearestPointOnSegment(s, p)

Value

A numeric vector with the coordinates of the projected point

Arguments

s

The coordinates of the segment

p

The coordinates of the point

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab