Skip to content

Instantly share code, notes, and snippets.

View HarryMadn3ss's full-sized avatar

Harry Watts HarryMadn3ss

View GitHub Profile
@HarryMadn3ss
HarryMadn3ss / Octree.cpp
Last active January 31, 2025 17:27
Octree implementation using a Thread pool
#include "Octree.h"
ThreadPool* Octree::threadPool;
OctreeNode* Octree::BulidOctree(Point center, float halfWidth, int stopDepth, int MaxStopDepth)
{
if(stopDepth == MaxStopDepth) threadPool = new ThreadPool(MAX_THREADS);
if (stopDepth < 0) return nullptr;
else
@HarryMadn3ss
HarryMadn3ss / JPSPathfinding.cpp
Created January 31, 2025 17:14
JPS Pathfinding Algorithm
[System.Serializable]
public class Pathfinding_JSP : PathFinding
{
bool ortoganolFound;
public bool manhatten = true, eucliden, octile, chebyshev;
[System.Serializable]
class NodeInformation
{