// Recalculates all values according to the specified mode /// <summary> /// Recalculates this instance. /// </summary> 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])); } }
// 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 /// <summary> /// Recalculates this instance. /// </summary> 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])); } }