Skip to content

Commit 3ed4aeb

Browse files
committed
fix error with variant constructors, classmethods not staticmethods!
1 parent 3e5d607 commit 3ed4aeb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎spatialmath/geom3d.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ def _identity():
267267
def isvalid(x, check=False):
268268
return x.shape == (6,)
269269

270-
@staticmethod
271-
def TwoPoints(P=None, Q=None):
270+
@classmethod
271+
def TwoPoints(cls, P=None, Q=None):
272272
"""
273273
Create Plucker line object from two 3D points
274274
@@ -292,8 +292,8 @@ def TwoPoints(P=None, Q=None):
292292
v = np.cross(w, P)
293293
return cls(np.r_[v, w])
294294

295-
@staticmethod
296-
def TwoPlanes(pi1, pi2):
295+
@classmethod
296+
def TwoPlanes(cls, pi1, pi2):
297297
r"""
298298
Create Plucker line from two planes
299299

0 commit comments

Comments
 (0)