Skip to content

Commit bee6224

Browse files
committed
make class play nicer with numpy
1 parent 9255858 commit bee6224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spatialmath/geom3d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ class Line3(BasePoseList):
207207
# w # direction vector
208208
# v # moment vector (normal of plane containing line and origin)
209209

210+
__array_ufunc__ = None # allow pose matrices operators with NumPy values
211+
210212
def __init__(self, v=None, w=None):
211213
"""
212214
Create a Plucker 3D line object

0 commit comments

Comments
 (0)