BoundingBoxEquals Method (BoundingBox) |
Namespace: Telogis.GeoBase
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'