/// <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))); }
/// <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); }