From 1ff78433578a11f5cb3dc9ffaf70033deb645ad7 Mon Sep 17 00:00:00 2001 From: paul lee Date: Thu, 6 Aug 2020 05:54:56 +0800 Subject: [PATCH] [ DraftVecUtils.cloest ] Elaborate documentation --- src/Mod/Draft/DraftVecUtils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/DraftVecUtils.py b/src/Mod/Draft/DraftVecUtils.py index 44b62b4ad8..477a06d994 100644 --- a/src/Mod/Draft/DraftVecUtils.py +++ b/src/Mod/Draft/DraftVecUtils.py @@ -622,8 +622,12 @@ def closest(vector, vlist, returnLength=False): ------- int The index of the list where the closest point is found. - dist - The distance (no unit) of the tested point from the found closest point. + + int, dist + The index, + and the distance to the closest point (numeric value only, no unit) + if returnLength is True. + """ typecheck([(vector, Vector), (vlist, list)], "closest")