예제 #1
0
 private bool CheckIfBetterFit(Size loneTarget, Size bestRemainder, Size candidate)
 {
     candidate.IsRotated = candidate.CanContainRotated(loneTarget);
     return((candidate.IsRotated || candidate.CanContain(loneTarget)) &&
            (bestRemainder.CanContain(candidate) || bestRemainder.CanContainRotated(candidate)));
 }