(self, a)
return Rotator(rot=rots, coord=coords, inv=invs, deg=False)
Composition of rotation.
Composition of rotation.
Composition of rotation .
def __mul__(self, a):
        """Composition of rotation."""
        if not isinstance(a, Rotator):
            raise TypeError(
                "A Rotator can only multiply another Rotator "
                "(composition of rotations)"
            )
        rots = self._rots + a._rots
        coords = self._coords + a._coords
        invs = self._invs + a._invs
        return Rotator(rot=rots, coord=coords, inv=invs, deg=False)
def __mul__ ( self , a ) : if not isinstance ( a , Rotator ) : raise TypeError ( "A Rotator can only multiply another Rotator " "(composition of rotations)" ) rots = self . _rots + a . _rots coords = self . _coords + a . _coords invs = self . _invs + a . _invs return Rotator ( rot = rots , coord = coords , inv = invs , deg = False )