Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

juaxix juaxix

🏠
Working from home
View GitHub Profile
@juaxix
juaxix / kdtree_with_example.cpp
Last active Mar 9, 2022
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 = ' ')
{