Learn R Programming

directlabels (version 2021.1.13)

project.onto.segments: project onto segments

Description

Given a point and a set of line segments representing a convex or alpha hull, calculate the closest point on the segments.

Usage

project.onto.segments(m, 
    h, debug = FALSE, 
    ...)

Arguments

m

m is 1 row, a center of a point cloud, we need to find the distance to the closest point on each segment of the convex hull.

h

Data frame describing the line segments of the convex or alpha hull.

debug

ignored