Пример #1
0
 def find_ship_orientation(self):
     #head left, back, right
     #Returns the unit direction that the ship is oriented
     ship_facing_vector = Vector(self.point_list[0]) - Vector(
         self.point_list[2])
     ship_facing_vector._normalize()
     return ship_facing_vector