def focusing(self, cursor):
     focus = None
     for point in self.points:
         if Point.distance(point, cursor) < self.focus_radius:
             focus = point
             break
     return focus
示例#2
0
 def updateBorn(self):
     """Return the born of the anatomy."""
     c = self.center
     lengths = [Point.distance(c, p) for p in self.points]
     self._born = max(lengths)