コード例 #1
0
        public void Multiply(float MultiplyAmount, bool ChangeVolume = true)
        {
            float GasVolume = gasMix.Volume;

            if (ChangeVolume)
            {
                GasVolume = GasVolume * MultiplyAmount;
            }

            Mix.Multiply(MultiplyAmount);

            var Newone = new float[gasMix.Gases.Length];

            for (int i = 0; i < gasMix.Gases.Length; i++)
            {
                Newone[i] = gasMix.Gases[i] * MultiplyAmount;
            }

            gasMix = GasMix.FromTemperature(Newone, gasMix.Temperature, GasVolume);
        }