Click or drag to resize

BoundingBoxIntersects Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Test whether this BoundingBox intersects with the specified BoundingBox.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public bool Intersects(
	BoundingBox other
)

Parameters

other
Type: Telogis.GeoBaseBoundingBox
The BoundingBox to test against.

Return Value

Type: Boolean
True if the boxes intersect, otherwise false.
Examples
C#
// BoundingBox 1
BoundingBox bb1 = new BoundingBox();
// Add arbitrary points in Los Angeles, USA.
bb1.Add(new LatLon(33.787935, -118.013866));
bb1.Add(new LatLon(33.761919, -117.985009));

// BoundingBox 2
BoundingBox bb2 = new BoundingBox();
// Add arbitrary points in Los Angeles, USA.
bb2.Add(new LatLon(33.774244, -117.996138));
bb2.Add(new LatLon(33.749594, -117.969763));

// Triple the size of the BoundingBox
Console.WriteLine("bb1 intersects bb2? " + bb1.Intersects(bb2));
// Prints 'bb1 intersects bb2? True'
See Also