bdaiinstitute / spatialmath-python

Create, manipulate and convert representations of position and orientation in 2D or 3D using Python
MIT License
517 stars 85 forks source link

ensure that angdiff returns a scalar for scalar args #89

Closed petercorke closed 11 months ago

petercorke commented 11 months ago

fix the problem with angdiff, ndarray output for two scalar inputs. Issue #81. Also updated the tests. Note that the equality tests from unittest and numpy.test consider that a single element array is equal to a scalar. Now added explicit tests for type of result.