BoundingBoxIntersects Method |
Namespace: Telogis.GeoBase
// 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'