public width_X(double x, double y, int quantity) { this.x = x; height_Y height = new height_Y(y, quantity); y_dataList.AddFirst(height); }
public void FindBestMatch_of_Y(height_Y searchValue, out height_Y cloossetBigger) { cloossetBigger = default; height_Y temp = y_dataList.OrderBy(i => i.y) .Where(i => i.y >= searchValue.y).FirstOrDefault(); cloossetBigger = temp; }
public void IFexistY(height_Y data, out height_Y foundData) { foundData = default; foreach (var vr in y_dataList) { if (vr.y == data.y) { foundData = vr; } } }