Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 952a8058 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

added implicit operator to wattsecond

parent eb023c2f
No related branches found
No related tags found
No related merge requests found
......@@ -669,6 +669,13 @@ namespace TUGraz.VectoCommon.Utils
{
return SIBase<Meter>.Create(wattSecond.Val / m.Value());
}
public static implicit operator WattSecond(Joule self)
{
return Create(self.Value());
}
}
public class WattSecondPerMeter : SIBase<WattSecondPerMeter>
......@@ -847,6 +854,11 @@ namespace TUGraz.VectoCommon.Utils
return Create(joule.Val + ws.Value());
}
public static Joule operator -(Joule joule, WattSecond ws)
{
return Create(joule.Val - ws.Value());
}
public static Watt operator /(Joule joule, Second s)
{
return SIBase<Watt>.Create(joule.Val / s.Value());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment