Exemple #1
0
 def inv(self):
     return self.__class__([quat.conj(q._A) for q in self])
Exemple #2
0
 def conj(self):
     if instance(v, np.ndarray) and len(shape) > 1 and v.shape[1] == 3:
         return self.__class__( [quat.conj(q._A) for q in self] )
     else:
         return self.__class__(quat.conj(self._A))
 def __truediv__(self, other):
     assert isinstance(self,
                       type(other)), 'operands to * are of different types'
     return self._op2(other, lambda x, y: quat.qqmul(x, quat.conj(y)))
 def inv(self):
     return UnitQuaternion([quat.conj(q._A) for q in self])
 def conj(self):
     return self.__class__([quat.conj(q._A) for q in self], norm=False)