explicit is better than implicit
- if the quaternion does not follow the convention, use "fromQuaternion(acceptHomomorph=True)"
This commit is contained in:
parent
c702441bcc
commit
e8464814ae
|
@ -44,7 +44,6 @@ class Rotation:
|
||||||
self.quaternion = quaternion.copy()
|
self.quaternion = quaternion.copy()
|
||||||
else:
|
else:
|
||||||
self.quaternion = Quaternion(q=quaternion[0],p=quaternion[1:4])
|
self.quaternion = Quaternion(q=quaternion[0],p=quaternion[1:4])
|
||||||
self.quaternion.homomorph() # ToDo: Needed?
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
"""Value in selected representation"""
|
"""Value in selected representation"""
|
||||||
|
|
Loading…
Reference in New Issue