public void PointInPolygon(TestPoint location, TestSize size, TestPoint point, bool isInside)
        {
            var shape = new RectangularPolygon(location, size);

            Assert.Equal(isInside, shape.Contains(point));
        }
        public void Distance(TestPoint location, TestSize size, TestPoint point, float expectecDistance)
        {
            IPath shape = new RectangularPolygon(location, size);

            Assert.Equal(expectecDistance, shape.Distance(point).DistanceFromPath);
        }
示例#3
0
        public void PointInPolygon(TestPoint location, TestSize size, TestPoint point, bool isInside)
        {
            InternalPath shape = Create(location, size);

            Assert.Equal(isInside, shape.PointInPolygon(point));
        }