class Newral::Graphs::AStar

Public Instance Methods

measure( path ) click to toggle source
# File lib/newral/graphs/a_star.rb, line 6
def measure( path  )
   path.cost + Newral::Tools.euclidian_distance( @end_node.location, path.end_node.location )
end