Ejemplo n.º 1
0
        public void IntersectsWith_Infinite_Empty()
        {
            Rect2 rect = new Rect2(10, 20, 50, 30);

            Assert.True(rect.IntersectsWith(Rect2.Infinite));
            Assert.True(Rect2.Infinite.IntersectsWith(rect));

            Assert.False(rect.IntersectsWith(Rect2.Empty));
            Assert.False(Rect2.Empty.IntersectsWith(rect));
        }
Ejemplo n.º 2
0
 private static bool CanRenderNode(Win2DRenderNode renderNode, Rect2 viewRect)
 {
     return(viewRect.IntersectsWith(renderNode.OcclusionBounds));
 }
Ejemplo n.º 3
0
 private static bool CanRenderPath(Win2DRenderNode renderNode, Rect2 viewRect)
 {
     return(viewRect.IntersectsWith(renderNode.RenderBoundsWithParent));
 }