correct two typos in Quaternion class
This commit is contained in:
parent
c97b83c9a1
commit
70606770d0
|
@ -219,7 +219,7 @@ class Quaternion:
|
||||||
abs(-self.z-other.z) < 1e-8)
|
abs(-self.z-other.z) < 1e-8)
|
||||||
|
|
||||||
def __ne__(self,other):
|
def __ne__(self,other):
|
||||||
return not __eq__(self,other)
|
return not self.__eq__(self,other)
|
||||||
|
|
||||||
def __cmp__(self,other):
|
def __cmp__(self,other):
|
||||||
return cmp(self.Rodrigues(),other.Rodrigues())
|
return cmp(self.Rodrigues(),other.Rodrigues())
|
||||||
|
@ -241,7 +241,7 @@ class Quaternion:
|
||||||
self *= Quaternion.fromAngleAxis(angle, axis)
|
self *= Quaternion.fromAngleAxis(angle, axis)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def rotateBy_Eulers(self, heading, attitude, bank):
|
def rotateBy_Eulers(self, eulers):
|
||||||
self *= Quaternion.fromEulers(eulers, type)
|
self *= Quaternion.fromEulers(eulers, type)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue