Skip to content

Instantly share code, notes, and snippets.

View funnylookinhat's full-sized avatar

David Overcash funnylookinhat

View GitHub Profile
@funnylookinhat
funnylookinhat / gist:5062061
Last active December 14, 2015 08:59
tree.js
{
"metadata" :
{
"formatVersion" : 3.1,
"generatedBy" : "Blender 2.65 Exporter",
"vertices" : 8637,
"faces" : 4778,
"normals" : 8242,
"colors" : 3,
@funnylookinhat
funnylookinhat / OldStaticQuadTree
Created January 28, 2013 17:30
Comparing two class definitions for NodeJS exports.
/**
* Static Quad Tree
* This is a one-way tree that only allows insertion for maximum efficiency.
* @author David Overcash <funnylookinhat@gmail.com>
* Credit to https://github.com/mikechambers/ExamplesByMesh for a great example.
*/
(function(exports) {
var Node = (function (constructParams) {
var _MAX_ITEMS = 4;
/**
* Static Quad Tree
* This is a one-way tree that only allows insertion for maximum efficiency.
* @author David Overcash <funnylookinhat@gmail.com>
* Credit to https://github.com/mikechambers/ExamplesByMesh for a great example.
*/
(function(exports) {
var Node = function (xMin,xMax,yMin,yMax) {
this._quad = {
/**
* Static Quad Tree
* This is a one-way tree that only allows insertion for maximum efficiency.
* @author David Overcash <funnylookinhat@gmail.com>
* Credit to https://github.com/mikechambers/ExamplesByMesh for a great example.
*/
(function(exports) {
var Node = (function (constructParams) {
var _MAX_ITEMS = 4;