(x, y int)
| 2453 | } |
| 2454 | |
| 2455 | func (mapData *MapData) GetI(x, y int) int { |
| 2456 | if y < 0 || x < 0 || y >= mapData.Height || x >= mapData.Width { |
| 2457 | return -1 |
| 2458 | } |
| 2459 | return mapData.Data[y][x] |
| 2460 | } |
| 2461 | |
| 2462 | func (mapData *MapData) Get(point Vector) int { |
| 2463 | return mapData.GetI(int(point.X), int(point.Y)) |
no outgoing calls
no test coverage detected