This commit is contained in:
ig 2023-09-11 11:31:41 +02:00
parent e538f6dd7e
commit 3a61b1e80b
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,6 @@ using static System.Math;
namespace InnovEnergy.Lib.Units.Composite;
public record AcPower
{
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(Int32 p) => new AcPower { Active = p, Reactive = 0 };
public static AcPower Zero => new AcPower { Active = 0, Reactive = 0, };
}