Ejemplo n.º 1
0
        public void QuickContainsIsCorrect()
        {
            using var region = new SKRegion(SKRectI.Create(10, 10, 100, 100));

            Assert.False(region.QuickContains(SKRectI.Create(50, 50, 100, 100)));
            Assert.True(region.QuickContains(SKRectI.Create(20, 20, 50, 50)));
            Assert.False(region.QuickContains(SKRectI.Create(200, 20, 50, 50)));
        }
Ejemplo n.º 2
0
        public void QuickContainsReturnsTrueIfItDoesContain()
        {
            using var region = new SKRegion(new SKRectI(25, 25, 50, 50));

            Assert.True(region.QuickContains(new SKRectI(30, 30, 40, 40)));
        }