public static Int32GraphCalculator operator *(Int32GraphCalculator a, float multiplier) { Int32GraphCalculator result = a.Clone(); result.minValue = Mathf.RoundToInt(a.minValue * multiplier); result.maxValue = Mathf.RoundToInt(a.maxValue * multiplier); return(result); }
public Int32GraphCalculator Clone() { var result = new Int32GraphCalculator(); result.minValue = minValue; result.maxValue = maxValue; result.growth = growth; return(result); }