/// <inheritdoc cref="RotationalStiffness.FromKilonewtonMetersPerRadian(double?)"/>
 public static RotationalStiffness?KilonewtonMetersPerRadian(this double?value) => RotationalStiffness.FromKilonewtonMetersPerRadian(value);
Beispiel #2
0
 public void NumberToKilonewtonMetersPerRadianTest() =>
 Assert.Equal(RotationalStiffness.FromKilonewtonMetersPerRadian(2), 2.KilonewtonMetersPerRadian());
 /// <inheritdoc cref="RotationalStiffness.FromKilonewtonMetersPerRadian(UnitsNet.QuantityValue)" />
 public static RotationalStiffness?KilonewtonMetersPerRadian(this decimal?value) => RotationalStiffness.FromKilonewtonMetersPerRadian(value == null ? (double?)null : Convert.ToDouble(value.Value));
 /// <inheritdoc cref="RotationalStiffness.FromKilonewtonMetersPerRadian(UnitsNet.QuantityValue)" />
 public static RotationalStiffness KilonewtonMetersPerRadian(this decimal value) => RotationalStiffness.FromKilonewtonMetersPerRadian(Convert.ToDouble(value));
 /// <inheritdoc cref="RotationalStiffness.FromKilonewtonMetersPerRadian(UnitsNet.QuantityValue)" />
 public static RotationalStiffness KilonewtonMetersPerRadian(this float value) => RotationalStiffness.FromKilonewtonMetersPerRadian(value);
 public static RotationalStiffness?KilonewtonMetersPerRadian <T>(this T?value) where T : struct => RotationalStiffness.FromKilonewtonMetersPerRadian(value == null ? (double?)null : Convert.ToDouble(value.Value));