OptimisationProblem/structures/Distances.h
2023-07-17 01:19:10 +03:00

22 lines
406 B
C++

#pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <filesystem>
// Distances in km
class Distances
{
private:
std::vector<std::vector<float>> matrix;
public:
Distances(const char* basePath) : Distances(std::string(basePath)) {};
Distances(std::string basePath);
float getDistance(int x, int y);
float getTravelTime(int x, int y);
};