Next / Previous / Contents / Shipman's homepage

9.7. FoDim.__neg__(): Unary minus

fohelpers.py
# - - -   F o D i m . _ _ n e g _ _

    def __neg__ ( self ):
        '''Negate a dimension.
        '''
        return FoDim(-self.n, self.units)