diff --git a/VectoCommon/VectoCommon/Utils/SI.cs b/VectoCommon/VectoCommon/Utils/SI.cs index 956de6f1f456baf377e6cbeaebfa7aab7007e238..7110bb757e55df107da4cce8580a291cd85a65a0 100644 --- a/VectoCommon/VectoCommon/Utils/SI.cs +++ b/VectoCommon/VectoCommon/Utils/SI.cs @@ -37,6 +37,7 @@ using System.Linq; using System.Linq.Expressions; using System.Reflection; using Newtonsoft.Json; +using System.Runtime.CompilerServices; using TUGraz.VectoCommon.Exceptions; // ReSharper disable ClassNeverInstantiated.Global @@ -942,7 +943,7 @@ namespace TUGraz.VectoCommon.Utils /// <summary> /// SI Class for NewtonMeter [Nm]. - /// N = kgm/s^2 + /// Nm = kgm^2/s^2 /// </summary> public class NewtonMeter : SIBase<NewtonMeter> { @@ -994,6 +995,10 @@ namespace TUGraz.VectoCommon.Utils { return SIBase<NewtonMeterSecond>.Create(newtonMeter.Val / perSecond.Value()); } + + public static implicit operator Joule(NewtonMeter self) { + return SIBase<Joule>.Create(self.Val); + } } /// <summary>