コード例 #1
0
ファイル: RenderRegion.cs プロジェクト: gabilic/Oplan
        public TracedScreenPoint[] GetPath(MapRectangle mapWindow, int zoom, CoordinateSystemIfc csi)
        {
            MapRectangle        mapWindow2 = mapWindow.GrowFraction(0.1);
            List <TracedVertex> list       = this.IntersectWithRectangle(mapWindow2);

            TracedScreenPoint[] array = new TracedScreenPoint[list.Count];
            int num = 0;

            foreach (TracedVertex current in list)
            {
                array[num] = new TracedScreenPoint(current.originalIndex, csi.GetTranslationInPixels(new LatLonZoom(mapWindow.GetNW().lat, mapWindow.GetNW().lon, zoom), current.position));
                num++;
            }
            return(array);
        }
コード例 #2
0
		public TracedScreenPoint[] GetPath(MapRectangle mapWindow, int zoom, CoordinateSystemIfc csi)
		{
			MapRectangle mapWindow2 = mapWindow.GrowFraction(0.1);
			List<TracedVertex> list = this.IntersectWithRectangle(mapWindow2);
			TracedScreenPoint[] array = new TracedScreenPoint[list.Count];
			int num = 0;
			foreach (TracedVertex current in list)
			{
				array[num] = new TracedScreenPoint(current.originalIndex, csi.GetTranslationInPixels(new LatLonZoom(mapWindow.GetNW().lat, mapWindow.GetNW().lon, zoom), current.position));
				num++;
			}
			return array;
		}