Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Triangle1 triangle0 = new Triangle1(2 , 8 , 6 , 60);
            Triangle1 triangle1 = new Triangle1(1 , 6 , 2 , 60);

            Triangle1 CrTr0 = triangle0.CreateTriangle1(2);
            Console.WriteLine(CrTr0);
        }
Exemplo n.º 2
0
        public Triangle1 CreateTriangle1(double k)
        {
            Triangle1 newtrTriangle1 = new Triangle1();

            newtrTriangle1.Area = Area / (k * k);

            newtrTriangle1.Alpha = Alpha;

            newtrTriangle1.B = B / k;

            newtrTriangle1.Hight = Hight/k;

            return newtrTriangle1;
        }