Exemplo n.º 1
0
        public void IsCounterClockwise(double[][] source, bool expected)
        {
            PdfPath pdfPath = new PdfPath();

            foreach (var point in source)
            {
                pdfPath.LineTo(point[0], point[1]);
            }
            pdfPath.LineTo(source[0][0], source[0][1]); // close path

            Assert.Equal(expected, pdfPath.IsCounterClockwise);
        }