improved code added unit test

This commit is contained in:
2024-08-18 10:33:01 +03:00
parent f4c988247c
commit 945fd7daa2
5 changed files with 73 additions and 17 deletions

View File

@@ -24,10 +24,14 @@ namespace omath::pathfinding
public:
[[nodiscard]]
std::expected<const NavigationVertex, std::string> GetClossestVertex(const Vector3& point) const;
private:
std::expected<Vector3, std::string> GetClossestVertex(const Vector3& point) const;
[[nodiscard]]
const std::vector<Vector3>& GetNeighbors(const Vector3& vertex) const;
std::list<NavigationVertex> m_vertexes;
std::unordered_map<Vector3, std::vector<Vector3>> m_verTextMap;
};
}