(self)
return (np.linalg.norm(self.to_target()) -
            self.named.model.site_size['target', 0])
Returns the signed distance to the target surface, negative is inside.
Returns the signed distance to the target surface, negative is inside.
Returns the signed distance to the target surface negative is inside .
def dist_to_target(self):
    """Returns the signed distance to the target surface, negative is inside."""
    return (np.linalg.norm(self.to_target()) -
            self.named.model.site_size['target', 0])
def dist_to_target ( self ) : return ( np . linalg . norm ( self . to_target ( ) ) - self . named . model . site_size [ 'target' , 0 ] )