Ejemplo n.º 1
0
        public Rondell Calc()
        {
            RondellMin = new Rondell()
            {
                StoneLengthA = Input.StoneLengthA, StoneLengthB = Input.StoneLengthB, ConcreteWidth = Input.ConcreteWidth
            };
            RondellMax = new Rondell()
            {
                StoneLengthA = Input.StoneLengthA, StoneLengthB = Input.StoneLengthB, ConcreteWidth = Input.ConcreteWidth
            };

            double stoneCountPrecise = Input.ScopeLength / Input.StoneLengthA * 100; //cm -> m

            RondellMin.StoneCount = (int)Math.Floor(stoneCountPrecise);
            RondellMax.StoneCount = (int)Math.Ceiling(stoneCountPrecise);

            return(RondellMax);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Empty constructor for StoneSkatch
 /// </summary>
 public StoneSkatch(Rondell rondell)
 {
     Rondell = rondell;
 }