shz_complex_t
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.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
e | float[2] | <Real, Imaginary> components as an array. |
real | float | The real portion of the complex number. |
imag | float | The imaginary portion of the complex number. |
Availability
Section titled “Availability”- C++ equivalent:
shz::complex - Back-ends: n/a (not a function)
- Defined in:
sh4zam/shz_complex.h:50 - Module: Complex, section "Types"