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); }
/// <summary> /// Empty constructor for StoneSkatch /// </summary> public StoneSkatch(Rondell rondell) { Rondell = rondell; }