MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / findNodes

Method findNodes

Source/ThirdParty/recastnavigation/DetourNode.cpp:89–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89unsigned int dtNodePool::findNodes(dtPolyRef id, dtNode** nodes, const int maxNodes)
90{
91 int n = 0;
92 unsigned int bucket = dtHashRef(id) & (m_hashSize-1);
93 dtNodeIndex i = m_first[bucket];
94 while (i != DT_NULL_IDX)
95 {
96 if (m_nodes[i].id == id)
97 {
98 if (n >= maxNodes)
99 return n;
100 nodes[n++] = &m_nodes[i];
101 }
102 i = m_next[i];
103 }
104
105 return n;
106}
107
108dtNode* dtNodePool::findNode(dtPolyRef id, unsigned char state)
109{

Callers 3

isInClosedListMethod · 0.80

Calls 1

dtHashRefFunction · 0.85

Tested by

no test coverage detected