Add Zero
This commit is contained in:
parent
e538f6dd7e
commit
3a61b1e80b
|
@ -3,7 +3,6 @@ using static System.Math;
|
||||||
|
|
||||||
namespace InnovEnergy.Lib.Units.Composite;
|
namespace InnovEnergy.Lib.Units.Composite;
|
||||||
|
|
||||||
|
|
||||||
public record AcPower
|
public record AcPower
|
||||||
{
|
{
|
||||||
public required ActivePower Active { get; init; }
|
public required ActivePower Active { get; init; }
|
||||||
|
@ -31,4 +30,6 @@ public record AcPower
|
||||||
|
|
||||||
public static implicit operator AcPower(Double p) => new AcPower { Active = p, Reactive = 0 };
|
public static implicit operator AcPower(Double p) => new AcPower { Active = p, Reactive = 0 };
|
||||||
public static implicit operator AcPower(Int32 p) => new AcPower { Active = p, Reactive = 0 };
|
public static implicit operator AcPower(Int32 p) => new AcPower { Active = p, Reactive = 0 };
|
||||||
|
|
||||||
|
public static AcPower Zero => new AcPower { Active = 0, Reactive = 0, };
|
||||||
}
|
}
|
Loading…
Reference in New Issue