Ejemplo n.º 1
0
 public bool Equals(Prism obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(this.BaseSide == obj.BaseSide && this.Height == obj.Height && this.NumberOfEdges == obj.NumberOfEdges);
 }
Ejemplo n.º 2
0
 public static bool PrismInBox(this Prism obj, int length, int height, int width)
 {
     if (height >= obj.Height && length > obj.BaseSide && width > obj.BaseSide)
     {
         return(true);
     }
     else if (height >= obj.BaseSide && length > obj.Height && width > obj.BaseSide)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }