Get the nearest polygon point to a reference point

nearest_point_JamPolygon(x, jp, ...)

Arguments

x

numeric matrix with columns "x" and "y"

jp

JamPolygon

...

additional arguments are ignored.

Value

numeric matrix with columns "x" and "y"