1
0
Fork 0
forked from 0x2620/oxjs

make Ox.reverse() work for arrays

This commit is contained in:
rolux 2012-04-02 23:11:56 +02:00
commit 1f7796b0f8
4 changed files with 18 additions and 12 deletions

View file

@ -246,6 +246,8 @@
> Ox.containsArea(Ox.test.areas[2], Ox.test.areas[3])
true
@*/
// FIXME: Shouldn't this be rewritten as a test
// if the intersection is equal to the inner area?
Ox.containsArea = function(areaA, areaB) {
// If an area crosses the dateline,
// we split it into two parts,
@ -287,9 +289,9 @@
> Ox.intersectAreas([Ox.test.areas[2], Ox.test.areas[3]])
{sw: {lat: 25, lng: -155}, ne: {lat: 30, lng: -150}}
@*/
// FIXME: handle the a corner case where
// two areas have two intersections
Ox.intersectAreas = function(areas) {
// FIXME: handle the a corner case where
// two areas have two intersections
var intersections, ret;
// If an area crosses the dateline,
// we split it into two parts,