openDAQ
Open data acquisition platform
ComplexNumberPtr Class Reference

Inherits ObjectPtr< IComplexNumber >.

Detailed Description

Represents a complex number as ICommplexNumber interface. Use this interface to wrap complex number when you need to add the number to lists, dictionaries and other containers which accept IBaseObject and derived interfaces.

Complex numbers have two components: real and imaginary. Both of them are of Float type.

Available factories:

// Creates a new Ratio object. Throws exception if not successful.
ComplexNumberPtr ComplexNumber(ComplexFloat64* value)

Public Member Functions

Float getReal () const
 Gets the real part of the complex number value. More...
 
Float getImaginary () const
 Gets the imaginary part of the complex number value. More...
 

Member Function Documentation

◆ getImaginary()

Float getImaginary ( ) const
inline

Gets the imaginary part of the complex number value.

Returns
The imaginary part of the complex value.

◆ getReal()

Float getReal ( ) const
inline

Gets the real part of the complex number value.

Returns
The real part of the complex value.
ComplexNumberPtr
Definition: complex_number_ptr.h:49