intersect

Returns a new LngLatBounds that is the intersection of this with another LngLatBounds,

Return

LngLatBounds

Parameters

box

LngLatBounds to intersect with


fun intersect(northLat: Double, eastLon: Double, southLat: Double, westLon: Double): LngLatBounds

Returns a new LngLatBounds that is the intersection of this with another box.

This values of northLat and southLat should be in the range of -90, 90, see GeometryConstants.MIN_LATITUDE and GeometryConstants.MAX_LATITUDE, otherwise IllegalArgumentException will be thrown. northLat should be greater or equal southLat, otherwise IllegalArgumentException will be thrown.

eastLon should be greater or equal westLon, otherwise IllegalArgumentException will be thrown.

Return

LngLatBounds

Parameters

northLat

Northern Latitude corner point

eastLon

Eastern Longitude corner point

southLat

Southern Latitude corner point

westLon

Western Longitude corner point