/// <summary> /// The "template" here is used as a visual template, that is, a descriptor of /// how the terminals should be laid out and a provided of location hints. /// The IC becomes the actual circuit within the return value. /// Accordingly, it is assumed that the template will be of the same /// "type" as the IC. /// </summary> /// <param name="ic"></param> /// <param name="template"></param> /// <returns></returns> public static IC CreateFromTemplate(Gates.IC ic, IC template) { UIGates.IC nuic = new UIGates.IC(ic, template.CloneTerminals()); template.DuplicateLocationHinting(nuic); return nuic; }