frac() → {number} Returns a random real number between 0 and 1. Returns
split() Split the node into 4 subnodes Source code:
insert(body) Insert the object into the node. If the node exceeds the capacity, it will split and add all objects to their corresponding
objects :array Array of quadtree children. Source code:
angleBetween(x1, y1, x2, y2) → {number} Find the angle of a segment from (x1, y1) -> (x2, y2)
distance(x1, y1, x2, y2) → {number} Returns the euclidian distance between the two given set of
snapToCeil(input, gap, start) → {number} Snap a value to nearest grid
integer() → {number} Returns a random integer between 0 and 2^32. Returns
max() → {number} Variation of Math.max that can be passed either an array of numbers or the numbers
state(state) → {string} Gets or Sets the state of the generator. This
Page 6 of 9