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)); }
private static bool CanRenderNode(Win2DRenderNode renderNode, Rect2 viewRect) { return(viewRect.IntersectsWith(renderNode.OcclusionBounds)); }
private static bool CanRenderPath(Win2DRenderNode renderNode, Rect2 viewRect) { return(viewRect.IntersectsWith(renderNode.RenderBoundsWithParent)); }