(self)
return np.linalg.norm(tip_to_target)
Returns the distance from the tip to the target.
Returns the distance from the tip to the target.
Returns the distance from the tip to the target .
def to_target(self):
    """Returns the distance from the tip to the target."""
    tip_to_target = (self.named.data.site_xpos['target'] -
                     self.named.data.site_xpos['tip'])
    return np.linalg.norm(tip_to_target)
def to_target ( self ) : tip_to_target = ( self . named . data . site_xpos [ 'target' ] - self . named . data . site_xpos [ 'tip' ] ) return np . linalg . norm ( tip_to_target )