mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
18
libs/routing/base/astar_vertex_data.hpp
Normal file
18
libs/routing/base/astar_vertex_data.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
namespace routing::astar
|
||||
{
|
||||
template <typename Vertex, typename Weight>
|
||||
struct VertexData
|
||||
{
|
||||
static VertexData Zero() { return VertexData(Vertex(), Weight()); }
|
||||
|
||||
VertexData(Vertex const & vertex, Weight const & realDistance)
|
||||
: m_vertex(vertex), m_realDistance(realDistance)
|
||||
{
|
||||
}
|
||||
|
||||
Vertex m_vertex;
|
||||
Weight m_realDistance;
|
||||
};
|
||||
} // namespace routing
|
||||
Reference in New Issue
Block a user