Skip to content

Commit 4d0c79c

Browse files
committed
exponentiate a twist with a scalar in rad (default) or deg
1 parent c7d7cdd commit 4d0c79c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spatialmath/twist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,9 @@ def exp(self, theta=None, unit='rad'):
14791479
14801480
:seealso: :func:`spatialmath.base.trexp2`
14811481
"""
1482-
return base.trexp2(theta)
1482+
theta = base.getunit(theta, unit)
1483+
1484+
return base.trexp2(self.S * theta)
14831485

14841486

14851487
def unit(self):

0 commit comments

Comments
 (0)