16 lines
465 B
C#
16 lines
465 B
C#
using InnovEnergy.Lib.Utils;
|
|
|
|
namespace InnovEnergy.Lib.Units.Composite;
|
|
|
|
public record DcPhase : IPhase
|
|
{
|
|
public required Voltage Voltage { get; init;}
|
|
public required Current Current { get; init;}
|
|
|
|
public Power Power => Current * Voltage;
|
|
|
|
public static DcPhase operator |(DcPhase left, DcPhase right) => OpParallel(left, right);
|
|
private static readonly Func<DcPhase, DcPhase, DcPhase> OpParallel = "|".CreateBinaryOpForProps<DcPhase>();
|
|
|
|
|
|
} |