Click or drag to resize

BoundingBoxInflate Method (Double, Double)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Makes each side of the BoundingBox bigger or smaller by the given number of degrees.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.98.0.0
Syntax
public void Inflate(
	double xDegrees,
	double yDegrees
)

Parameters

xDegrees
Type: SystemDouble
The number of degrees by which the width should change. The sign of this parameter determines whether the bounding box shrinks or grows. A positive degrees value causes the box to inflate, a negative value causes the box to deflate.
yDegrees
Type: SystemDouble
The number of degrees by which the height 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.
Examples
C#
BoundingBox bb1 = new BoundingBox();
// Add arbitrary points in Los Angeles, USA.
bb1.Add(new LatLon(33.94, -118.34));
bb1.Add(new LatLon(33.78, -117.95));
// Inflate the BoundingBox width by 2 degrees and height by 4. 
bb1.Inflate(2,4);
// Add to renderlist to view on map.
renderList.Add(bb1);
See Also