Next / Previous / Contents / Shipman's homepage

8.8. Xform.__mul__(): Implement the * operator

As a convenience, we implement the “*” operator to mean composition.

homcoord.py
# - - -   X f o r m . _ _ m u l _ _

    def __mul__ ( self, other ):
        '''Implement '*'
        '''
        return self.compose(other)