示例#1
0
        public static Dimesions calc(double _width, double _height)
        {
            Dimesions d = new Assignment2.Dimesions();

            d = d.calc(_width, _height);
            return(d);
        }
示例#2
0
        public Dimesions calc(double width, double height)
        {
            Dimesions d = new Assignment2.Dimesions();

            d.Woodlength = 2 * (width + height) * 3.25;
            d.GlassArea  = 2 * (width * height);

            return(d);
        }