Neco/LandView/LandViewUtils.cs
/// <summary>Calculates if all points from L2 are in L1</summary>
/// <param name="L1"></param>
/// <param name="L2"></param>
/// <returns></returns>
Calculates if all points from L2 are in L1
Calculates if all points from L2 are in L1
public static bool DeepContains(LandViewItem L1, LandViewItem L2) {
            foreach (Point P in L2.GraphicalPoints) {
                if (!ContainsPoint(L1, P)) { return false; }
            }
            return true;
        }
public static bool DeepContains ( LandViewItem L1 , LandViewItem L2 ) { foreach ( Point P in L2 . GraphicalPoints ) { if ( ! ContainsPoint ( L1 , P ) ) { return false ; } } return true ; }
Calculates if all points from L2 are in L1
Calculates if all points from L2 are in L1
//If it does we still need to check. For contains, we need to check that *every* point in L2 falls in L1 //OK All points from L2 are contained in L1, we can confidently say yes:
None
L1
LandViewItem
None
L2
LandViewItem
None