87 float totalDist = 0.0f;
91 edges.push_back(std::make_pair(
edge(fromVertexID, toVertexID), EdgeCost{ to, 0xFFFF }));
95 std::size_t last = nodes.size();
96 std::size_t first = 0;
103 for (std::size_t i = first + 1; i < last; ++i)
117 totalDist += std::sqrt(
120 std::pow(nodes[i]->Loc.Z - nodes[i - 1]->Loc.Z, 2));
127 edges.push_back(std::make_pair(
edge(fromVertexID, toVertexID), EdgeCost{ to, dist }));
std::pair< uint32, uint32 > edge
Definition: TaxiPathGraph.h:47
void DeterminaAlternateMapPosition(uint32 mapId, float x, float y, float z, uint32 *newMapId, DBCPosition2D *newPos)
Definition: DBCStores.cpp:861
Definition: DBCEnums.h:26
TaxiPathNodesByPath sTaxiPathNodesByPath
Definition: DB2Stores.cpp:139
float X
Definition: DBCEnums.h:28
Graph::vertex_descriptor vertex_descriptor
Definition: TaxiPathGraph.h:45
float Y
Definition: DBCEnums.h:29
uint32_t uint32
Definition: Define.h:150
vertex_descriptor CreateVertexFromFromNodeInfoIfNeeded(TaxiNodesEntry const *node)
Definition: TaxiPathGraph.cpp:172
G3D::Quat pow(const G3D::Quat &q, double x)
Definition: Quat.h:761
uint32_t uint32
Definition: g3dmath.h:168
Definition: DBCEnums.h:701
std::vector< TaxiPathNodeEntry const * > TaxiPathNodeList
Definition: DB2Structure.h:1449