OptimisationProblem/structures/Distances.h

22 lines
406 B
C
Raw Normal View History

2023-07-17 00:19:10 +02:00
#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);
};