Innovenergy_trunk/csharp/Lib/Units/Power/ActivePower.cs

18 lines
423 B
C#

namespace InnovEnergy.Lib.Units.Power;
public sealed class ActivePower : Power
{
public override String Symbol => "W";
public ActivePower(Double value) : base(value)
{
}
public static implicit operator ActivePower(Double d) => new ActivePower(d);
public static implicit operator Double(ActivePower d) => d.Value;
public static ActivePower operator -(ActivePower d) => -d.Value;
}