OpenRA.Graphics.RgbaColorRenderer.DrawDisconnectedLine C# (CSharp) Method

DrawDisconnectedLine() private method

private DrawDisconnectedLine ( IEnumerable points, float width, Color color ) : void
points IEnumerable
width float
color Color
return void
        void DrawDisconnectedLine(IEnumerable<float3> points, float width, Color color)
        {
            using (var e = points.GetEnumerator())
            {
                if (!e.MoveNext())
                    return;

                var lastPoint = e.Current;
                while (e.MoveNext())
                {
                    var point = e.Current;
                    DrawLine(lastPoint, point, width, color);
                    lastPoint = point;
                }
            }
        }