예제 #1
0
        public void SingleSegmentConstructor()
        {
            var segment = new LinearLineSegment(new Vector2(0, 0), new Vector2(10, 10));
            IReadOnlyList <PointF> flatPath = segment.Flatten();

            Assert.Equal(2, flatPath.Count);
            Assert.Equal(new PointF(0, 0), flatPath[0]);
            Assert.Equal(new PointF(10, 10), flatPath[1]);
        }
        public void SingleSegmentConstructor()
        {
            var segment  = new LinearLineSegment(new Vector2(0, 0), new Vector2(10, 10));
            var flatPath = segment.Flatten();

            Assert.Equal(2, flatPath.Length);
            Assert.Equal(new Vector2(0, 0), flatPath[0]);
            Assert.Equal(new Vector2(10, 10), flatPath[1]);
        }