コード例 #1
0
    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);
    }
コード例 #2
0
    public Int32GraphCalculator Clone()
    {
        var result = new Int32GraphCalculator();

        result.minValue = minValue;
        result.maxValue = maxValue;
        result.growth   = growth;
        return(result);
    }