BoundingBoxInflate Method (Double) | |
Print this page
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.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public void Inflate(
double degrees
)
Public Sub Inflate (
degrees As Double
)
Parameters
- degrees
- 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.
Remarks
The box will grow or shrink on all sides by the number of degrees specified.
If you have a box where
P1.x = 10,
P2.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).
Examples BoundingBox bb1 = new BoundingBox();
bb1.Add(new LatLon(33.94, -118.34));
bb1.Add(new LatLon(33.78, -117.95));
bb1.Inflate(2);
renderList.Add(bb1);
See Also