Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of <see cref="T:Gu.Units.Torque"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"></param>
 public static Torque From(double value, TorqueUnit unit)
 {
     return(new Torque(unit.ToSiUnit(value)));
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="T:Gu.Units.Torque"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"><see cref="T:Gu.Units.NewtonMetres"/>.</param>
 public Torque(double value, TorqueUnit unit)
 {
     this.newtonMetres = unit.ToSiUnit(value);
 }