Beispiel #1
0
        public void AddSegment(PartialGraph partial)
        {
            partials.Add(partial);
            if (partials.Count == 1)
            {
                Left  = partial.from;
                Right = partial.to;
            }
            else
            {
                Left  = Math.Min(partial.from, Left);
                Right = Math.Max(partial.to, Right);
            }

            Area = Integral(Left, Right);
        }
Beispiel #2
0
        public void AddSegment(PartialGraph partial)
        {
            partials.Add(partial);
            if (partials.Count == 1)
            {
                Left = partial.from;
                Right = partial.to;
            }
            else
            {
                Left = Math.Min(partial.from, Left);
                Right = Math.Max(partial.to, Right);
            }

            Area = Integral(Left, Right);
        }