Neco/LandView/LandViewUtils.cs
/// <summary>Calculates if a rectangle around L1 contains a rectangle around L2. Used to discard, not to assert</summary>
/// <param name="L1"></param>
/// <param name="L2"></param>
/// <returns></returns>
Calculates if a rectangle around L1 contains a rectangle around L2. Used to discard, not to assert
Calculates if a rectangle around L1 contains a rectangle around L2 . Used to discard not to assert
public static bool FastContains(LandViewItem L1, LandViewItem L2) {
            Rectangle R1 = LandviewItemBoundingRectangle(L1);
            Rectangle R2 = LandviewItemBoundingRectangle(L2);
            return R1.Contains(R2); 
        }
public static bool FastContains ( LandViewItem L1 , LandViewItem L2 ) { Rectangle R1 = LandviewItemBoundingRectangle ( L1 ) ; Rectangle R2 = LandviewItemBoundingRectangle ( L2 ) ; return R1 . Contains ( R2 ) ; }
Calculates if a rectangle around L1 contains a rectangle around L2.
Calculates if a rectangle around L1 contains a rectangle around L2 .
//Let's divide this into levels. First let's make two rectangles and see if they contain each other //See if R1 contains R2
None
L1
LandViewItem
None
L2
LandViewItem
None