private double Cost(SpaceTimeNode p, SpaceTimeNode q) { var pTile = _graph.GetTile(p); if (p.T == _w) { return(_rra.AbstractDist(pTile)); } if (q == p.Next()) { if (q.Equals(Target)) { return(0); } return(1); } var qTile = _graph.GetTile(q); return(Metrics.Octile(pTile, qTile)); }
protected override double Heuristic(AbstractTile p) { return(_rra.AbstractDist(p)); }