ArcGISWindowsPhoneSDK.QueryRelatedRecords.Expand C# (CSharp) Method

Expand() private method

private Expand ( Envelope mapExtent, MapPoint point, double pct ) : Envelope
mapExtent Envelope
point MapPoint
pct double
return Envelope
        private Envelope Expand(Envelope mapExtent, MapPoint point, double pct)
        {
            return new Envelope(
                point.X - mapExtent.Width * (pct / 2), point.Y - mapExtent.Height * (pct / 2),
                point.X + mapExtent.Width * (pct / 2), point.Y + mapExtent.Height * (pct / 2))
            {
                SpatialReference = mapExtent.SpatialReference
            };
        }