You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
size_tnodeSize; // the size of the structure being used for the nodes - important since nodes are copied into the resulting path
40
-
void (*nodeNeighbors)(ASNeighborListneighbors, void*node, void*context); // add nodes to the neighbor list if they are connected to this node
41
-
float (*pathCostHeuristic)(void*fromNode, void*toNode, void*context); // estimated cost to transition from the first node to the second node -- optional, uses 0 if not specified
42
-
int (*earlyExit)(size_tvisitedCount, void*visitingNode, void*context); // early termination, return 1 for success, -1 for failure, 0 to continue searching -- optional
43
-
int (*nodeComparator)(void*node1, void*node2, void*context); // must return a sort order for the nodes (-1, 0, 1) -- optional, uses memcmp if not specified
39
+
size_tnodeSize; // the size of the structure being used for the nodes - important since nodes are copied into the resulting path
40
+
void (*nodeNeighbors)(ASNeighborListneighbors, void*node, void*context); // add nodes to the neighbor list if they are connected to this node
41
+
float (*pathCostHeuristic)(void*fromNode, void*toNode, void*context); // estimated cost to transition from the first node to the second node -- optional, uses 0 if not specified
42
+
int (*earlyExit)(size_tvisitedCount, void*visitingNode, void*goalNode, void*context); // early termination, return 1 for success, -1 for failure, 0 to continue searching -- optional
43
+
int (*nodeComparator)(void*node1, void*node2, void*context); // must return a sort order for the nodes (-1, 0, 1) -- optional, uses memcmp if not specified
44
44
} ASPathNodeSource;
45
45
46
46
// use in the nodeNeighbors callback to return neighbors
0 commit comments