BoundingBoxRectangle Property |
Namespace: Telogis.GeoBase
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)); Console.WriteLine("BoundingBox rectangle coordinates are {0}", bb1.Rectangle); // Prints 'BoundingBox rectangle coordinates are 33.761919,-118.013866, 33.787935,-117.985009' Telogis.GeoBase.Rectangle myRectangle = new Telogis.GeoBase.Rectangle(); myRectangle.p1 = new LatLon(33.776473, -117.961255); myRectangle.p2 = new LatLon(33.769672, -117.956316); bb1.Rectangle = myRectangle; Console.WriteLine("BoundingBox rectangle coordinates are {0}", bb1.Rectangle); // Prints 'BoundingBox rectangle coordinates are 33.776473,-117.961255, 33.769672,-117.956316'