Click or drag to resize

BoundingBoxContains Method (BoundingBox)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Tests to see if this BoundingBox fully contains another bounding box.

Namespace:  Telogis.GeoBase
Assembly: (in Version:
public bool Contains(
	BoundingBox box


Type: Telogis.GeoBaseBoundingBox
The BoundingBox to check

Return Value

Type: Boolean
True if this Box fully contains the other, otherwise false.
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));

// Create another BoundingBox containing bb1:
BoundingBox bb2 = new BoundingBox(bb1);

// Does bb1 fully contain bb2?
Console.WriteLine("bb1 contains bb2? " + bb1.Contains(bb2));
// Prints 'bb1 contains bb2? True'
See Also