예제 #1
0
파일: Time.cs 프로젝트: alena-butkevich/OOP
 public static Time operator -(Time time1, Time time2)
 {
     Time time = new Time();
     time.Value = time1.Value - time2.Value;
     return time;
 }
예제 #2
0
 public static Time operator /(Distance distance, Speed speed)
 {
     Time time = new Time();
     time.Value = distance.Value / speed.Value;
     return time;
 }
예제 #3
0
 public static Time operator /(Speed speed, Acceleration acceleration)
 {
     Time time = new Time();
     time.Value = speed.Value / acceleration.Value;
     return time;
 }
예제 #4
0
 public static Time operator /(Impulse impulse, Force force)
 {
     Time time = new Time();
     time.Value = impulse.Value / force.Value;
     return time;
 }