scaled

fun scaled(scale: Double, base: (Cell, Cell) -> Double): (Cell, Cell) -> Double(source)

Scale base by scale (typically GridGraph.minCellCost) so it stays admissible on grids with cell costs below 1.0. Since every step costs at least scale × stepLength, multiplying an otherwise-admissible geometric heuristic by scale keeps it a lower bound on the true cost. A scale of 0 yields ZERO.