MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / distance

Method distance

PythonAPI/examples/no_rendering_mode.py:1101–1101  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

1099 vehicle_list = [x[0] for x in vehicles if x[0].id != self.hero_actor.id]
1100
1101 def distance(v): return location.distance(v.get_location())
1102 for n, vehicle in enumerate(sorted(vehicle_list, key=distance)):
1103 if n > 15:
1104 break

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected