Click or drag to resize

BoundingBoxEquals Method (BoundingBox)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Compares this object to the parameter BoundingBox.

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

Parameters

other
Type: Telogis.GeoBaseBoundingBox
BoundingBox used for comparison.

Return Value

Type: Boolean
Returns true if the parameter BoundingBox has the same coordinates as this BoundingBox.
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));

// Create a clone of bb1:
BoundingBox bb2 = bb1.Clone();

// Does bb1 equal bb2?
Console.WriteLine("bb1 equals bb2? " + bb1.Equals(bb2));
// Prints 'bb1 equals bb2? True'

// Now inflate bb2 by 2 degrees
bb2.Inflate(2);

// Does bb1 still equal bb2? 
Console.WriteLine("bb1 equals bb2? " + bb1.Equals(bb2));
// Prints 'bb1 equals bb2? False'
See Also