/// <summary> /// Creates an instance of <see cref="Gu.Units.Torque"/> from its string representation /// </summary> /// <param name="text">The string representation of the <see cref="Gu.Units.Torque"/></param> /// <param name="result">The parsed <see cref="Torque"/></param> /// <returns>True if an instance of <see cref="Torque"/> could be parsed from <paramref name="text"/></returns> public static bool TryParse(string text, out Torque result) { return(QuantityParser.TryParse <TorqueUnit, Torque>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture, out result)); }
public static Torque operator *(double left, TorqueUnit right) { return(Torque.From(left, right)); }
/// <summary> /// Divides <paramref name="left"/> by <paramref name="right"/> /// </summary> /// <param name="left">The left value</param> /// <param name="right">The right value</param> /// <returns>The <see cref="Torque"/> that is the result from the division.</returns> public static Torque operator /(Power left, AngularSpeed right) { return(Torque.FromNewtonMetres(left.watts / right.radiansPerSecond)); }
public static Torque operator /(Energy left, Angle right) { return(Torque.FromNewtonMetres(left.joules / right.radians)); }