mourner / rbush

RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_infinite function

fredj opened this issue · comments

Bounding box is defined as [minX, minY, maxX, maxY]; the _infinite function should be:

_infinite: function () { 
  return [Infinity, -Infinity, Infinity, -Infinity]; 
}

instead of:

_infinite: function () { 
  return [Infinity, Infinity, -Infinity, -Infinity]; 
}

Nope, it shouldn't. Look more carefully :)

Renamed the method to make this more clear.

ok, got it ...