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

Skip to content
Snippets Groups Projects
Commit bae36e43 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

SI: Added divide operator: PerSecond / Second = PerSquareSecond

parent 7b5528fd
No related branches found
No related tags found
No related merge requests found
......@@ -619,6 +619,12 @@ namespace TUGraz.VectoCommon.Utils
[DebuggerHidden]
private PerSecond(double val) : base(val, new Unit[0], DenominatorDefault) {}
[DebuggerHidden]
public static PerSquareSecond operator /(PerSecond perSecond, Second second)
{
return SIBase<PerSquareSecond>.Create(perSecond.Val / second.Value());
}
public double AsRPM
{
get { return Val * 60 / (2 * Math.PI); }
......
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