BoundingBoxContains 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 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'