MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / scale_map

Method scale_map

scenario_runner/no_rendering_mode.py:771–775  ·  view source on GitHub ↗
(self, scale)

Source from the content-addressed store, hash-verified

769 return int(self.scale * self._pixels_per_meter * width)
770
771 def scale_map(self, scale):
772 if scale != self.scale:
773 self.scale = scale
774 width = int(self.big_map_surface.get_width() * self.scale)
775 self.surface = pygame.transform.smoothscale(self.big_map_surface, (width, width))
776
777
778class ModuleWorld(object):

Callers 1

_compute_scaleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected