﻿var BoundingBox=Class.create();
BoundingBox.prototype=
{
    west: null,
    south: null,
    east: null,
    north: null,

    initialize: function(t_west, t_south, t_east, t_north) {
        this.west=t_west;
        this.south=t_south;
        this.east=t_east;
        this.north=t_north;
    },

    intersectsWith: function(t_bbox) {
        return !(this.west>=t_bbox.east||
               this.east<=t_bbox.west||
               this.south>=t_bbox.north||
               this.north<=t_bbox.south);
    }
};