This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |
NewerOlder