// TODO: this hueristic is probably wrong public static PathCfg Adjacent(RectInt area) => new PathCfg(pt => area.IsAdjacent(pt), pt => Vec2.Distance(pt, area.center));