コード例 #1
0
 /// <summary>
 /// Converts the value of this quantity into another unit.
 /// This instance is not changed. Use the return value.
 /// </summary>
 /// <param name="newUnit">The new unit this value is converted to.</param>
 /// <returns>A new instance of this quantity in the new unit.</returns>
 public Speed <T> ConvertTo(SpeedUnit <T> newUnit)
 {
     return((Speed <T>)base.ConvertTo(newUnit));
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of speed.
 /// </summary>
 /// <param name="value">The numerical value in the given <paramref name="unit"/>.</param>
 /// <param name="unit">The unit the numerical value is in.</param>
 public Speed(double value, SpeedUnit <T> unit)
     : base(value, unit)
 {
 }