コード例 #1
0
        public static Momentum operator -(Momentum momentum1, Impulse momentum2)
        {
            Momentum momentum = new Momentum();

            momentum.Value = momentum1.Value - momentum2.Value;
            return(momentum);
        }
コード例 #2
0
        public static Momentum operator *(Mass mass, Speed speed)
        {
            Momentum momentum = new Momentum();

            momentum.Value = mass.Value * speed.Value;
            return(momentum);
        }