lib/greyhound.js
function(mins, maxs) {
    // make sure correct number of elements in both mins and maxs
    if (mins.length != 3 ||
        maxs.length != 3)
        throw new Error("Mins and Maxs should have 3 elements each");

    // make sure all maxes are greater than mins
    mins.forEach(function(v, i) {
        if (v >= maxs[i])
            throw new Error("All elements of maxs should be greater than mins");
    });

    this.mins = mins;
    this.maxs = maxs;
}
function(mins, maxs) {
    // make sure correct number of elements in both mins and maxs
    if (mins.length != 3 ||
        maxs.length != 3)
        throw new Error("Mins and Maxs should have 3 elements each");

    // make sure all maxes are greater than mins
    mins.forEach(function(v, i) {
        if (v >= maxs[i])
            throw new Error("All elements of maxs should be greater than mins");
    });

    this.mins = mins;
    this.maxs = maxs;
}
function ( mins , maxs ) { // make sure correct number of elements in both mins and maxs if ( mins . length != 3 || maxs . length != 3 ) throw new Error ( "Mins and Maxs should have 3 elements each" ) ; // make sure all maxes are greater than mins mins . forEach ( function ( v , i ) { if ( v >= maxs [ i ] ) throw new Error ( "All elements of maxs should be greater than mins" ) ; } ) ; this . mins = mins ; this . maxs = maxs ; }
A bounding box abstraction class which can be passed to or returned by the reader. This bounding box is not a general
purpose bounding box, but is rather geared towards geo data.  It is also, always axis aligned.
The ground is in the X,Y plane and Z represents the height, the Z coordinate is never touched when perfoming
splitting actions.  Top refers to North, Left to West, Right to East and Bottom to South.

@class
@return {BBox}
A bounding box abstraction class which can be passed to or returned by the reader . This bounding box is not a general purpose bounding box but is rather geared towards geo data . It is also always axis aligned . The ground is in the X Y plane and Z represents the height the Z coordinate is never touched when perfoming splitting actions . Top refers to North Left to West Right to East and Bottom to South .