22 lines
406 B
C++
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);
|
|
};
|
|
|