public bool Equals(Prism obj) { if (obj == null) { return(false); } return(this.BaseSide == obj.BaseSide && this.Height == obj.Height && this.NumberOfEdges == obj.NumberOfEdges); }
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); } }