Exemplo n.º 1
0
 public static bool Contains(this IQuboidPlace qplace, IQuboidLogic package, int rotation)
 {
     if (qplace.Length >= package.GetLength(rotation) &&
         qplace.Width >= package.GetWidth(rotation) &&
         qplace.Height >= package.GetHeight(rotation))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public static double Ground(this IQuboidLogic logicHolder, int rotation)
 {
     return(logicHolder.GetLength(rotation) * logicHolder.GetWidth(rotation));
 }