8000 2 return values rather than namedtuple · krishanrana/spatialmath-python@bdcbc60 · GitHub
[go: up one dir, main page]

Skip to content

Commit bdcbc60

Browse files
committed
2 return values rather than namedtuple
1 parent 2dd6093 commit bdcbc60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spatialmath/geom3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def closest_to_point(self, x):
765765
p = self.point(lam).flatten() # is the closest point on the line
766766
d = np.linalg.norm( x - p)
767767

768-
return namedtuple('closest', 'p d lam')(p, d, lam)
768+
return p, d
769769

770770

771771
def commonperp(self, l2): # pylint: disable=no-self-argument

0 commit comments

Comments
 (0)
0