blob: 7276101838f5813823e3e6cd9f4facfef71e14c9 [file] [log] [blame]
#pragma once
#include <vector>
#include <exception>
using namespace std;
class Delaunator{
public:
Delaunator(const vector<double> &coords);
struct No_triangulation : public exception {
const char * what () const throw () {
return "No delaunay triangulation";
};
};
private:
double m_center_x;
double m_center_y;
double m_hash_size;
vector<int> m_hash;
};