MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / hex_bounds

Function hex_bounds

pogom/models.py:566–574  ·  view source on GitHub ↗
(center, steps)

Source from the content-addressed store, hash-verified

564
565
566def hex_bounds(center, steps):
567 # Make a box that is (70m * step_limit * 2) + 70m away from the center point
568 # Rationale is that you need to travel
569 sp_dist = 0.07 * 2 * steps
570 n = get_new_coords(center, sp_dist, 0)[0]
571 e = get_new_coords(center, sp_dist, 90)[1]
572 s = get_new_coords(center, sp_dist, 180)[0]
573 w = get_new_coords(center, sp_dist, 270)[1]
574 return (n, e, s, w)
575
576
577# todo: this probably shouldn't _really_ be in "models" anymore, but w/e

Callers 2

_generate_locationsMethod · 0.85

Calls 1

get_new_coordsFunction · 0.85

Tested by

no test coverage detected