- class QOpcUaDoubleComplexNumber#
The OPC UA DoubleComplexNumber type. More…
Synopsis#
Methods#
def
__init__()
def
imaginary()
def
__eq__()
def
real()
def
setImaginary()
def
setReal()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
The DoubleComplexNumberType defined in OPC UA 1.05 part 8, 5.6.5. It stores a complex number with double precision.
- __init__()#
Default constructs a double complex number with no parameters set.
- __init__(arg__1)
- Parameters:
arg__1 –
QOpcUaDoubleComplexNumber
- __init__(real, imaginary)
- Parameters:
real – float
imaginary – float
Constructs a double complex number with real part
real
and imaginary partimaginary
.- imaginary()#
- Return type:
float
Returns the imaginary part of the complex number.
See also
- __eq__(rhs)#
- Parameters:
- Return type:
bool
Returns
true
if this double complex number has the same value asrhs
.- real()#
- Return type:
float
Returns the real part of the complex number.
See also
- setImaginary(imaginary)#
- Parameters:
imaginary – float
Sets the imaginary part of the complex number to
imaginary
.See also
- setReal(real)#
- Parameters:
real – float
Sets the real part of the complex number to
real
.See also