Next / Previous / Contents / Shipman's homepage

27.4. FoDim.__sub__()

Subtraction of two units.

fosox.py
# - - -   F o D i m . _ _ s u b _ _

    def __sub__(self, other):
        '''Subtract two dimensions
        '''
        #-- 1 --
        negOther = -other

        #-- 2 --
        return self + negOther