simpleIntersection
fun simpleIntersection(rectangle: Rectangle, otherRectangle: Rectangle, result: Rectangle? = definedExternally): Rectangle?(source)
Computes a simple intersection of two rectangles. Unlike Rectangle.intersection, this function does not attempt to put the angular coordinates into a consistent range or to account for crossing the anti-meridian. As such, it can be used for rectangles where the coordinates are not simply latitude and longitude (i.e. projected coordinates).
Return
The modified result parameter, a new Rectangle instance if none was provided or undefined if there is no intersection.
Parameters
rectangle
On rectangle to find an intersection
otherRectangle
Another rectangle to find an intersection
result
The object onto which to store the result.