Click or drag to resize

BoundingBoxAdd Method (LatLon)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Inflate the BoundingBox to contain the given point.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void Add(
	LatLon point
)

Parameters

point
Type: Telogis.GeoBaseLatLon
A LatLon point that the box will inflate to contain.
Remarks
By calling this method repeatedly a BoundingBox may be created which contains all the given points. If P1 is null (possibly because the default constructor was used) the first call to this method will set both P1 and P2 to the same value, resulting in a BoundingBox with no area. If Add is called again with the desired P2 value then the BoundingBox will expand.
Examples
C#
// Create a BoundingBox
BoundingBox bb1 = new BoundingBox();
// Expand it to include given points
bb1.Add(new LatLon(33.94, -118.34));
bb1.Add(new LatLon(33.78, -117.95));
See Also