System.Collections.Generic.List.Add(seg2d)

Here are the examples of the csharp api System.Collections.Generic.List.Add(seg2d) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

19 View Source File : ppi2d.cs
License : Apache License 2.0
Project Creator : ericsink

internal void GetSegments(List<seg2d> segs, SegmentInfo match)
        {
            foreach (seginfo2d si in info)
            {
                if (si.info == match)
                {
                    segs.Add(si.seg);
                }
            }
        }

19 View Source File : ppi2d.cs
License : Apache License 2.0
Project Creator : ericsink

internal void GetSegmentsReversed(List<seg2d> segs, SegmentInfo match)
        {
            foreach (seginfo2d si in info)
            {
                if (si.info == match)
                {
                    segs.Add(si.seg.reverse());
                }
            }
        }

19 View Source File : triangleint2d.cs
License : Apache License 2.0
Project Creator : ericsink

public static void add_seg(List<seg2d> segs, xy a, xy b)
        {
            seg2d already = find_seg(segs, a, b);

            if (already != null)
            {
                return;
            }

            segs.Add(new seg2d(a, b));
        }