/* double Dstar::heuristic(state a, state b) * -------------------------- * Pretty self explanitory, the heristic we use is the 8-way distance * scaled by a constant C1 (should be set to <= min cost). */ double Dstar::heuristic(state a, state b) { return eightCondist(a,b)*C1; }
/* double Dstar::heuristic(state a, state b) * -------------------------- * Pretty self explanitory, the heristic we use is the 8-way distance * scaled by a constant C1 (should be set to <= min cost). */ double Dstar::heuristic(const state &a, const state &b) const { return eightCondist(a,b)*C1; }