Utilities (seamaster.utils)
Collection of helper functions for geometry and pathfinding.
manhattan_distance(p1, p2): Returns the Manhattan distance between twoPoints (int).next_point(p, direction): Returns the nextPointin a givenDirection, orNoneif out of bounds.direction_from_point(p1, p2): Returns the primaryDirectionfromp1top2.get_direction_in_one_radius(src: Point, trg: Point): Returns the direction fromsrctotrgif it lies in one radius.get_optimal_next_hops(start, end): Returns a list ofDirections representing optimal moves fromstarttoend.get_shortest_distance_between_points(start, end): Returns the shortest path distance (int) between two points using precomputed paths.