MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/RACER / Between

Function Between

swarm_exploration/utils/lkh_tsp_solver/src/Between.c:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 */
17
18int Between(const Node * ta, const Node * tb, const Node * tc)
19{
20 int a, b = tb->Rank, c;
21
22 if (!Reversed) {
23 a = ta->Rank;
24 c = tc->Rank;
25 } else {
26 a = tc->Rank;
27 c = ta->Rank;
28 }
29 return a <= c ? b >= a && b <= c : b >= a || b <= c;
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected