Esempio n. 1
0
        }  // end of - AreaRectangle()

        public static dim2 AreaRectangleRing(dim1 b_ex, dim1 h_ex, dim1 b_in, dim1 h_in)
        {
            dim2 s1 = AreaRectangle(b_ex, h_ex);
            dim2 s2 = AreaRectangle(b_in, h_in);

            return(s1 - s2);
        }  // end of - AreaRectangle()
Esempio n. 2
0
        }   // M

        #endregion Properties

        #region Operators
        // operator *(dim1 d1, dim1 d2)
        public static dim2 operator *(dim1 d1, dim1 d2)
        {
            dim2 d3 = new dim2();

            d3.Mm_Sq = d1.Mm * d2.Mm;
            return(d3);
        }   // operator *(dim1 d1, dim1 d2)
Esempio n. 3
0
        }  // end of - AreaCircleRing()

        public static dim2 AreaCircleRing(dim1 d_ex, dim1 d_in)
        {
            //return (Math.Pow(d_ex, 2) * PiDiv4) - (Math.Pow(d_in, 2) * PiDiv4);
            dim2 s1 = AreaCircle(d_ex);
            dim2 s2 = AreaCircle(d_in);

            return(s1 - s2);
        }  // end of - AreaCircleRing()