CCT.NUI.Core.Shape.ContourTracer.FindFirstPoint C# (CSharp) Method

FindFirstPoint() private method

private FindFirstPoint ( ) : System.Point
return System.Point
        private Point FindFirstPoint()
        {
            int width = this.Width;
            int height = this.Width;
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    if (this.contourMap.IsSet(x, y))
                    {
                        return new Point(x, y, this.contourMap[x, y]);
                    }
                }
            }
            throw new ArgumentException("Contour has no points");
        }