Calculates watts from imaginary and real components of a voltage and current phasor.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static Power CalculatePower( IPhasorValue voltage, IPhasorValue current )
Public Shared Function CalculatePower ( _ voltage As IPhasorValue, _ current As IPhasorValue _ ) As Power
public: static Power CalculatePower( IPhasorValue^ voltage, IPhasorValue^ current )
Parameters
- voltage (IPhasorValue)
- Voltage phasor.
- current (IPhasorValue)
- Current phasor.
Return Value
Calculated watts from imaginary and real components of specified voltage and current phasors.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | voltage and current must not be null. |