Пример #1
0
 // Recalculates all values according to the specified mode
 private void Recalculate()
 {
     // Reinitialize X values
     XValues = new Interpolator(_Minimum.Longitude.DecimalDegrees, _Maximum.Longitude.DecimalDegrees, Count);
     // Reinitialize Y values
     YValues = new Interpolator(_Minimum.Latitude.DecimalDegrees, _Maximum.Latitude.DecimalDegrees, Count);
     // Convert the arrays into a MapRoute
     for (int Iteration = 0; Iteration < Count; Iteration++)
     {
         // Add a new Position to the value collection
         _Values[Iteration] = new Position(new Latitude(YValues[Iteration]), new Longitude(XValues[Iteration]));
     }
 }
		// Recalculates all values according to the specified mode
		private void Recalculate()
		{	
			// Reinitialize X values
            XValues = new Interpolator(_Minimum.Longitude.DecimalDegrees, _Maximum.Longitude.DecimalDegrees, Count);
			// Reinitialize Y values
            YValues = new Interpolator(_Minimum.Latitude.DecimalDegrees, _Maximum.Latitude.DecimalDegrees, Count);
			// Convert the arrays into a MapRoute
			for(int Iteration = 0; Iteration < Count; Iteration++)
			{
				// Add a new Position to the value collection
				_Values[Iteration] = new Position(new Latitude(YValues[Iteration]), new Longitude(XValues[Iteration]));
			}
		}