QOpcUaComplexNumber#
The OPC UA ComplexNumber type. More…
Synopsis#
Functions#
def
__eq__
(rhs)def
imaginary
()def
real
()def
setImaginary
(imaginary)def
setReal
(real)
Detailed Description#
The ComplexNumberType defined in OPC-UA part 8, 5.6.4. It stores a complex number with float precision.
- class PySide6.QtOpcUa.QOpcUaComplexNumber#
PySide6.QtOpcUa.QOpcUaComplexNumber(arg__1)
PySide6.QtOpcUa.QOpcUaComplexNumber(real, imaginary)
- Parameters
arg__1 –
PySide6.QtOpcUa.QOpcUaComplexNumber
real – float
imaginary – float
Constructs a complex number with real part real
and imaginary part imaginary
.
- PySide6.QtOpcUa.QOpcUaComplexNumber.imaginary()#
- Return type
float
Returns the imaginary part of the complex number.
See also
- PySide6.QtOpcUa.QOpcUaComplexNumber.__eq__(rhs)#
- Parameters
- Return type
bool
Returns true
if this complex number has the same value as rhs
.
- PySide6.QtOpcUa.QOpcUaComplexNumber.real()#
- Return type
float
Returns the real part of the complex number.
See also
- PySide6.QtOpcUa.QOpcUaComplexNumber.setImaginary(imaginary)#
- Parameters
imaginary – float
Sets the imaginary part of the complex number to imaginary
.
See also
- PySide6.QtOpcUa.QOpcUaComplexNumber.setReal(real)#
- Parameters
real – float
Sets the real part of the complex number to real
.
See also