Module distance_transform

Source

Functionsยง

chebyshev_distance_transform_from_cost_matrix
Provides a Cost Matrix with values equal to the Chebyshev distance from any position in the provided initial Cost Matrix with a value set to 0.
chebyshev_distance_transform_from_terrain
Provides a Cost Matrix with values equal to the Chebyshev distance from any wall terrain. This does not calculate based on constructed walls, only terrain walls.
manhattan_distance_transform_from_cost_matrix
Provides a Cost Matrix with values equal to the Manhattan distance from any position in the provided initial Cost Matrix with a value set to 0.
manhattan_distance_transform_from_terrain
Provides a Cost Matrix with values equal to the Manhattan distance from any wall terrain. This does not calculate based on constructed walls, only terrain walls.