Skip to content

Instantly share code, notes, and snippets.

View juaxix's full-sized avatar

juaxix juaxix

View GitHub Profile
juaxix / kdtree_with_example.cpp
Last active March 9, 2022 19:38
C++ KD Tree with Vector3 and a condition flag
View kdtree_with_example.cpp
#include <iostream>
#include <memory>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
void padTo(string &str, const size_t num, const char paddingChar = ' ')