by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.0, Creation date: 2021-02-04, Last change: 2025-09-15
See Also: CPLdisttopoint
[dp,PLA,PLB]=CPLdistance(CPLA,CPLB,[d,lim])
CPLA: | Contour A | |
CPLB: | Contour B | |
d: | sample distance | |
lim: | if true d is limit not sample distance |
dp: | minimal distance | |
PLA: | List of Points on CPLA (including auxiliary points) | |
PLB: | List of Points on CPLB (including auxiliary points) |
CPLdistance(CPLsample(22),PLcircle(6)+[34 10])
CPLdistance(CPLsample(22),PLcircle(6)+[34 10],1)
CPLdistance(CPLsample(22),PLcircle(6)+[34 50],1,true)
CPLdistance(PLsquare(4),PLsquare(4)+[10 1],1),
[d,ai,bi]=CPLdistance(PLsquare(4),PLsquare(4)+[10 1],1),