Constructors:
AvAPI_Complex(void)
AvAPI_Complex default Constructor
Returns: Object pointer real and imaginary set to zero
Parameters: None
AvAPI_Complex(r, i)
AvAPI_Complex Constructor
Returns: Object pointer
Parameters:
double r - real part
double i - imaginary part
Public Methods:
AvAPI_Complex& byMP(magnitude, theta)
Set real and imag parts using the magnitude and phase given
Returns:AvAPI_Complex& - reference to this object
Parameters:
double magnitude - magnitude of the complex value
double theta - phase angle in degrees
Note: real = magnitude * cos(theta)
imag = magnitude * sin(theta)
double real(void)
Return the real part of the complex number
Returns: double - real part
Parameters: None
double imag(void)
Return the imaginary part of the complex number
Returns: double - imag part
Parameters: None
double Mag(void)
Return the magnitude of the complex number
Returns: double - magnitude
Parameters: None
double Phase(void)
Return the phase of the complex number
Returns: double - phase angle in degrees
Parameters: None