You could write your own. Something like this (untested):
GBounds.prototype.IsEmpty=function(){
return this.minX>this.maxX||this.minY>this.maxY
}
GBounds.Intersects = function(a,b){
if(a.minX>b.maxX)return false;
if(b.minX>a.maxX)return false;
if(a.minY>b.maxY)return false;
if(b.minY>a.maxY)return false;
return true
}
GBounds.Intersection = function(a,b){
var c=new GBounds(Math.max(a.minX,b.minX),
Math.max(a.minY,b.minY),
Math.min(a.maxX,b.maxX),
Math.min(a.maxY,b.maxY));
if(c.IsEmpty())return null;
return c
}
I've used Method names that start with an Uppercase character, in case
Google ever do put back their versions.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---