Пример #1
0
 public static Speed operator -(Speed speed1, Speed speed2)
 {
     Speed speed = new Speed();
     speed.Value = speed1.Value - speed2.Value;
     return speed;
 }
Пример #2
0
 public static Speed operator *(Time time, Acceleration acceleration)
 {
     Speed speed = new Speed();
     speed.Value = acceleration.Value * time.Value;
     return speed;
 }
Пример #3
0
 public static Speed operator /(Distance distance, Time time)
 {
     Speed speed = new Speed();
     speed.Value = distance.Value / time.Value;
     return speed;
 }