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
}
stmueller/pathmapping documentation built on Nov. 13, 2023, 12:39 p.m.