Print this page
BoundingBoxInflate Method (Double)
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Make each side of the BoundingBox
bigger or smaller by the given number of degrees.
geobase.net (in geobase.net.dll) Version: 220.127.116.11
public void Inflate(
Public Sub Inflate (
degrees As Double
- Type: SystemDouble
The number of degrees by which the size should change.
The sign of this parameter determines whether the box shrinks or grows. A
positive degrees value causes the box to inflate, a negative
value causes the box to deflate.
The box will grow or shrink on all sides by the number of degrees specified.
If you have a box where P1
.x = 10,
.x = 15 and you specify 5 degrees then you get
P1.x = 5 and P2.x = 20 (both sides have moved outwards by 5 degrees).
BoundingBox bb1 = new BoundingBox();
bb1.Add(new LatLon(33.94, -118.34));
bb1.Add(new LatLon(33.78, -117.95));