Skip to content

Commit 1986eb1

Browse files
committed
Change quaternion qslerp default arg shortest to True
1 parent d8ac7a6 commit 1986eb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spatialmath/base/quaternions.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ def qslerp(
770770
q0: ArrayLike4,
771771
q1: ArrayLike4,
772772
s: float,
773-
shortest: Optional[bool] = False,
773+
shortest: Optional[bool] = True,
774774
tol: float = 20,
775775
) -> UnitQuaternionArray:
776776
"""
@@ -782,7 +782,7 @@ def qslerp(
782782
:type q1: array_like(4)
783783
:arg s: interpolation coefficient in the range [0,1]
784784
:type s: float
785-
:arg shortest: choose shortest distance [default False]
785+
:arg shortest: choose shortest distance [default True]
786786
:type shortest: bool
787787
:param tol: Tolerance when checking for identical quaternions, in multiples of eps, defaults to 20
788788
:type tol: float, optional

0 commit comments

Comments
 (0)