Skip to content

Commit df98be7

Browse files
Dezzlesshiffman
authored andcommitted
Allow default boundary and capacity (CodingTrain#37)
* Updated packing to remove vulnerabilities "found 17 vulnerabilities (2 low, 14 moderate, 1 high) in 1414 scanned packages" * Added withDefault functionality that will pull from global * Updated visualize_qtree to usej withDefaults for demonstration purposes * Improved QuadTree.create function to support multiple parameters * Updated visualize_qtree to use .create instead of .withDefaults * Separated quadtree.json functionality into a separate file, separated some of the tests out Added a test case that helps fill out coverage
1 parent 9600369 commit df98be7

File tree

7 files changed

+1064
-2636
lines changed

7 files changed

+1064
-2636
lines changed

examples/visualize_qtree/sketch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function setup() {
99
createCanvas(600, 600);
1010
background(255);
1111
let boundary = new Rectangle(width / 2, height / 2, width / 2, height / 2);
12-
qtree = new QuadTree(boundary, 4);
12+
qtree = QuadTree.create();
1313
for (let i = 0; i < 300; i++) {
1414
let x = randomGaussian(width / 2, width / 8);
1515
let y = randomGaussian(height / 2, height / 8);

0 commit comments

Comments
 (0)