Exemple #1
0
        }   // operator *(dim1 d1, double dbl)

        // operator *(Dim1 d1, double dbl)
        public static dim1 operator *(double dbl, dim1 d1)
        {
            dim1 d3 = new dim1();

            d3.Mm = d1.Mm * dbl;
            return(d3);
        }   // operator *(dim1 d1, double dbl)
Exemple #2
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()
Exemple #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()
Exemple #4
0
        }   // end of - PolarWCircleRing()

        public static dim3 PolarWCircleRing(dim1 d_ex, dim1 d_in)
        {
            double a = d_in / d_ex;

            return(Math.Pow(d_ex, 3.0) * PiDiv16 * (1.0 - Math.Pow(a, 4.0)));
        }   // end of - PolarWCircleRing()
Exemple #5
0
        }   // end of - PolarWCircle()

        public static dim3 PolarWCircle(dim1 d_ex)
        {
            return(Math.Pow(d_ex, 3.0) * PiDiv16);
        }   // end of - PolarWCircle()
Exemple #6
0
        }  // end of - AxialWRectangle()

        public static dim3 AxialWRectangle(dim1 b_ex, dim1 h_ex)
        {
            return(b_ex * Math.Pow(h_ex, 2.0) / 6.0);
        }  // end of - AxialWRectangle()
Exemple #7
0
        }  // end of - AxialWCircleRing()

        public static dim3 AxialWCircleRing(dim1 d_ex, dim1 d_in)
        {
            return(Math.Pow(d_ex, 3.0) * PiDiv32 * (1.0 - Math.Pow((d_in / d_ex), 4.0)));
        }  // end of - AxialWCircleRing()
Exemple #8
0
        }  // end of - AxialWCircle()

        public static dim3 AxialWCircle(dim1 d_ex)
        {
            return(Math.Pow(d_ex, 3.0) * PiDiv32);
            //return d_ex * d_ex * d_ex * PiDiv32;
        }  // end of - AxialWCircle()
Exemple #9
0
        }  // end of - AreaRectangle()

        public static dim2 AreaRectangle(dim1 b_ex, dim1 h_ex)
        {
            return(b_ex * h_ex);
        }  // end of - AreaRectangle()
Exemple #10
0
        }  // end of - AreaCircle()

        public static dim2 AreaCircle(dim1 d_ex)
        {
            return(Math.Pow(d_ex, 2.0) * PiDiv4);
        }  // end of - AreaCircle()
Exemple #11
0
 // конструктор с аргументом - dim1
 public Rod(dim1 d_exVal)
 {
     d_ex   = d_exVal;
     length = 1000.0;
 }
Exemple #12
0
 // конструктор с аргументами - dim1
 public Rod(dim1 d_exVal, dim1 lengthVal)
 {
     d_ex   = d_exVal;
     length = lengthVal;
 }