public Point LngLatToMercator(LngLat lngLat) { double[] array = new double[0]; for (int i = 0; i < ProjectionUtil.LLBAND.Length; i++) { if (lngLat.Lat >= (double)ProjectionUtil.LLBAND[i]) { array = ProjectionUtil.LL2MC[i]; break; } } if (array.Length == 0) { for (int j = 0; j < ProjectionUtil.LLBAND.Length; j++) { if (lngLat.Lat <= (double)(-(double)ProjectionUtil.LLBAND[j])) { array = ProjectionUtil.LL2MC[j]; break; } } } return(this.convert(lngLat, array, 0)); }
public abstract Pixel LngLatToPixel(LngLat lngLat, double zoom);
public bool Equals(LngLat other) { return(other != null && other.Lng == this.Lng && other.Lat == this.Lat); }