コード例 #1
0
        public width_X(double x, double y, int quantity)
        {
            this.x = x;

            height_Y height = new height_Y(y, quantity);

            y_dataList.AddFirst(height);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
                }
            }
        }