kdtree/main.cpp

19 lines
533 B
C++

#include "kdtree.h"
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
// Test points
std::vector<Point *> points{new Point(new float[3]{0.0, 0.0, 0.0}, nullptr),
new Point(new float[3]{0.0, 1.0, 0.0}, nullptr),
new Point(new float[3]{0.0, 2.0, 3.0}, nullptr),
new Point(new float[3]{1.0, 0.0, 4.0}, nullptr)};
KDTree tree = KDTree(points);
std::cout << tree.to_string();
return 0;
}