BoundingBoxContains Method (LatLon) |
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)); // Locate the center of the BoundingBox: LatLon BoxCenter = bb1.Center; // Is the center of the BoundingBox in the BoundingBox? Console.WriteLine("Center is in BB? " + bb1.Contains(BoxCenter)); // Writes 'Center is in BB? True'