Skip to content

shz_complex_t

Markdown
typedef struct shz_complex {
union {
float e[2]; //!< <Real, Imaginary> components as an array.
struct {
float real; //!< The real portion of the complex number.
float imag; //!< The imaginary portion of the complex number.
};
};
} shz_complex_t;

Represents a floating-point complex number real/imaginary pair.

FieldTypeDescription
efloat[2]<Real, Imaginary> components as an array.
realfloatThe real portion of the complex number.
imagfloatThe imaginary portion of the complex number.