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); }
public static double Ground(this IQuboidLogic logicHolder, int rotation) { return(logicHolder.GetLength(rotation) * logicHolder.GetWidth(rotation)); }