예제 #1
0
        public static Impulse operator -(Impulse impulse1, Impulse impulse2)
        {
            Impulse impulse = new Impulse();

            impulse.Value = impulse1.Value - impulse2.Value;
            return(impulse);
        }
예제 #2
0
        public static Impulse operator *(Time time, Force force)
        {
            Impulse impulse = new Impulse();

            impulse.Value = time.Value * force.Value;
            return(impulse);
        }
예제 #3
0
파일: Time.cs 프로젝트: alena-butkevich/OOP
 public static Impulse operator *(Force force, Time time)
 {
     Impulse impulse = new Impulse();
     impulse.Value = time.Value * force.Value;
     return impulse;
 }
예제 #4
0
 public static Impulse operator -(Impulse impulse1, Impulse impulse2)
 {
     Impulse impulse = new Impulse();
     impulse.Value = impulse1.Value - impulse2.Value;
     return impulse;
 }