using System; namespace Kingo.Framework.LayerStyleConvert.XSDClass { // Token: 0x02000060 RID: 96 public class EnvelopeN { // Token: 0x17000144 RID: 324 // (get) Token: 0x060003A3 RID: 931 RVA: 0x000152A0 File Offset: 0x000134A0 // (set) Token: 0x060003A4 RID: 932 RVA: 0x000152B7 File Offset: 0x000134B7 public double XMin { get; set; } // Token: 0x17000145 RID: 325 // (get) Token: 0x060003A5 RID: 933 RVA: 0x000152C0 File Offset: 0x000134C0 // (set) Token: 0x060003A6 RID: 934 RVA: 0x000152D7 File Offset: 0x000134D7 public double YMin { get; set; } // Token: 0x17000146 RID: 326 // (get) Token: 0x060003A7 RID: 935 RVA: 0x000152E0 File Offset: 0x000134E0 // (set) Token: 0x060003A8 RID: 936 RVA: 0x000152F7 File Offset: 0x000134F7 public double XMax { get; set; } // Token: 0x17000147 RID: 327 // (get) Token: 0x060003A9 RID: 937 RVA: 0x00015300 File Offset: 0x00013500 // (set) Token: 0x060003AA RID: 938 RVA: 0x00015317 File Offset: 0x00013517 public double YMax { get; set; } // Token: 0x17000148 RID: 328 // (get) Token: 0x060003AB RID: 939 RVA: 0x00015320 File Offset: 0x00013520 // (set) Token: 0x060003AC RID: 940 RVA: 0x00015337 File Offset: 0x00013537 public ProjectedCoordinateSystem SpatialReference { get; set; } // Token: 0x060003AD RID: 941 RVA: 0x00015340 File Offset: 0x00013540 public EnvelopeN() { this.SpatialReference = new ProjectedCoordinateSystem(); } // Token: 0x060003AE RID: 942 RVA: 0x00015358 File Offset: 0x00013558 public EnvelopeN Union(EnvelopeN extent) { EnvelopeN envelopeN = new EnvelopeN(); if (extent == null) { extent = this; } if (double.IsNaN(this.XMin)) { envelopeN.XMin = extent.XMin; } else if (double.IsNaN(extent.XMin)) { envelopeN.XMin = this.XMin; } else { envelopeN.XMin = Math.Min(extent.XMin, this.XMin); } if (double.IsNaN(this.XMax)) { envelopeN.XMax = extent.XMax; } else if (double.IsNaN(extent.XMax)) { envelopeN.XMax = this.XMax; } else { envelopeN.XMax = Math.Max(extent.XMax, this.XMax); } if (double.IsNaN(this.YMin)) { envelopeN.YMin = extent.YMin; } else if (double.IsNaN(extent.YMin)) { envelopeN.YMin = this.YMin; } else { envelopeN.YMin = Math.Min(extent.YMin, this.YMin); } EnvelopeN result; if (double.IsNaN(this.YMax)) { envelopeN.YMax = extent.YMax; result = envelopeN; } else if (double.IsNaN(extent.YMax)) { envelopeN.YMax = this.YMax; result = envelopeN; } else { envelopeN.YMax = Math.Max(extent.YMax, this.YMax); result = envelopeN; } return result; } } }