R/DistancePointSegment.R

Defines functions DistancePointSegment

Documented in DistancePointSegment

DistancePointSegment <-
function(px,py,x1,y1,x2,y2)
  {
    closest <- ClosestPoint(px,py,x1,y1,x2,y2)
    dist <- LineMagnitude(px, py, closest[[1]],closest[[2]])
    dist
}

Try the pathmapping package in your browser

Any scripts or data that you put into this service are public.

pathmapping documentation built on May 2, 2019, 4:20 a.m.