示例#1
0
 public static SpeedConversion ConvertFrom(this double value, SpeedUnit unit)
 {
     return new SpeedConversion(value * unit.GetConversionFactor());
 }
示例#2
0
 public static SpeedConversion ConvertFrom(this double value, SpeedUnit unit)
 {
     return(new SpeedConversion(value * unit.GetConversionFactor()));
 }
示例#3
0
 public static double ConvertTo(this double metres, SpeedUnit unit)
 {
     return metres / unit.GetConversionFactor();
 }
示例#4
0
 public static double ConvertTo(this double metres, SpeedUnit unit)
 {
     return(metres / unit.GetConversionFactor());
 }