Esempio n. 1
0
        public Round(double Radius)
        {
            this.Radius = Radius.CheckSide();

            Perimeter = CalculatePerimetr.Round(Radius);
            Area      = CalculateArea.Round(Radius);
        }
Esempio n. 2
0
        public Square(double Side)
        {
            this.Side = Side.CheckSide();

            Perimeter = CalculatePerimetr.Square(Side);
            Area      = CalculateArea.Square(Side);
        }
Esempio n. 3
0
        public Rectangle(double SmallBasis, double BigBasis)
        {
            this.SmallBasis = SmallBasis.CheckSide();
            this.BigBasis   = BigBasis.CheckSide();

            Perimeter = CalculatePerimetr.Rectangle(SmallBasis, BigBasis);
            Area      = CalculateArea.Rectangle(SmallBasis, BigBasis);
        }
Esempio n. 4
0
        public Treangle(double Basis, double RightSide, double LeftSide)
        {
            this.Basis     = Basis.CheckSide();
            this.LeftSide  = LeftSide.CheckSide();
            this.RightSide = RightSide.CheckSide();

            CheckFigure.CheckSumSide(Basis, LeftSide + RightSide);
            CheckFigure.CheckSumSide(LeftSide, Basis + RightSide);
            CheckFigure.CheckSumSide(RightSide, LeftSide + Basis);

            Perimeter = CalculatePerimetr.Treangle(Basis, RightSide, LeftSide);
            Area      = CalculateArea.Treangle(Basis, RightSide, LeftSide);
        }
Esempio n. 5
0
        public Trapec(double SmallBasis, double RightSide, double BigBasis, double LeftSide, double Height)
        {
            this.SmallBasis = SmallBasis.CheckSide();
            this.BigBasis   = BigBasis.CheckSide();
            this.RightSide  = RightSide.CheckSide();
            this.LeftSide   = LeftSide.CheckSide();
            this.Height     = Height.CheckSide();

            CheckFigure.CheckSumSide(SmallBasis, BigBasis + RightSide + LeftSide);
            CheckFigure.CheckSumSide(BigBasis, SmallBasis + RightSide + LeftSide);
            CheckFigure.CheckSumSide(RightSide, BigBasis + SmallBasis + LeftSide);
            CheckFigure.CheckSumSide(LeftSide, BigBasis + RightSide + SmallBasis);

            Perimeter = CalculatePerimetr.Trapec(BigBasis, SmallBasis, RightSide, LeftSide);
            Area      = CalculateArea.Trapec(BigBasis, SmallBasis, Height);
        }