Skip to content

Commit 2b2b57f

Browse files
authored
Fix breaking bug in angvec2r. (#180)
1 parent 92f6199 commit 2b2b57f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spatialmath/base/transforms3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def angvec2r(theta: float, v: ArrayLike3, unit="rad", tol: float = 20) -> SO3Arr
752752
if np.linalg.norm(v) < tol * _eps:
753753
return np.eye(3)
754754

755-
θ = getunit(theta, unit)
755+
θ = getunit(theta, unit, vector=False)
756756

757757
# Rodrigue's equation
758758

0 commit comments

Comments
 (0)