Skip to content

Commit 359c280

Browse files
committed
unit twist constructors now explicitly named Unit
1 parent 7d5f1f4 commit 359c280

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spatialmath/twist.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,9 @@ def w(self):
468468
# -------------------- variant constructors ----------------------------#
469469

470470
@classmethod
471-
def Revolute(cls, a, q, pitch=None):
471+
def UnitRevolute(cls, a, q, pitch=None):
472472
"""
473-
Construct a new unit rotational 3D twist
473+
Construct a new 3D rotational unit twist
474474
475475
:param a: Twist axis or line of action
476476
:type a: array_like(3)
@@ -497,9 +497,9 @@ def Revolute(cls, a, q, pitch=None):
497497
return cls(v, w)
498498

499499
@classmethod
500-
def Prismatic(cls, a):
500+
def UnitPrismatic(cls, a):
501501
"""
502-
Construct a new unit prismatic 3D twist
502+
Construct a new 3D unit prismatic twist
503503
504504
:param a: Twist axis or line of action
505505
:type a: array_like(3)
@@ -1262,9 +1262,9 @@ def isvalid(v, check=True):
12621262
# -------------------- variant constructors ----------------------------#
12631263

12641264
@classmethod
1265-
def Revolute(cls, q):
1265+
def UnitRevolute(cls, q):
12661266
"""
1267-
Construct a new 2D revolute Twist object
1267+
Construct a new 2D revolute unit twist
12681268
12691269
:param q: Point on the line of action
12701270
:type q: array_like(2)
@@ -1286,9 +1286,9 @@ def Revolute(cls, q):
12861286
return cls(v[:2], 1)
12871287

12881288
@classmethod
1289-
def Prismatic(cls, a):
1289+
def UnitPrismatic(cls, a):
12901290
"""
1291-
Construct a new 2D primsmatic Twist object
1291+
Construct a new 2D primsmatic unit twist
12921292
12931293
:param a: Displacment
12941294
:type a: array-like(2)

0 commit comments

Comments
 (0)