MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / __trans

Method __trans

common/image/draw_util.py:25–26  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

23 return map[x][y]
24
25 def __trans(self, x, y):
26 return int(4 * x + 8), int(y * 4 + 8)
27
28 def draw_obstacle(self, x, y, width, height, map):
29 # self.clear_cell(x, y, map)

Callers 6

get_valueMethod · 0.95
draw_obstacleMethod · 0.95
draw_pointMethod · 0.95
clear_pointMethod · 0.95
draw_UAVMethod · 0.95
clear_cellMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected