Пример #1
0
 def distance_from_camera_cover(self, cover):
     middle = Point.middle(cover.points)
     #print(middle)
     return Point.distance(middle, self.start_point)
Пример #2
0
 def distance_from_camera(self, edge):
     edge_middle = Point.middle((edge.point1, edge.point2))
     #print(edge_middle)
     return Point.distance(edge_middle, self.start_point)