shz::complex
C++ wrapper around a floating-point complex number, real/imaginary pair.
- Header:
#include <sh4zam/shz_complex.hpp>(source) - C type:
shz_complex_t(layout-compatible; the C API accepts it directly) - Bases:
shz_complex_t
Members
Section titled “Members”complex
Section titled “complex”complex() noexcept=defaultcomplex(const complex &rhs) noexcept=defaultcomplex(float re, float im=0.0f) noexceptcomplex(const shz_complex_t &cplx) noexceptcomplex(const volatile shz_complex_t &cplx) noexceptDefault constructor.
operator+=
Section titled “operator+=”complex & operator+=(const complex &rhs) noexceptAdds and accumulates rhs onto the given complex number.
Calls: shz_caddf()
operator-=
Section titled “operator-=”complex & operator-=(const complex &rhs) noexceptSubtracts rhs from the given complex number, assigning it to the result.
Calls: shz_csubf()
operator*=
Section titled “operator*=”complex & operator*=(const complex &rhs) noexceptcomplex & operator*=(float scale) noexceptMultiplies and accumulates rhs by the given complex number.
Calls: shz_cmulf(), shz_cscalef()
operator/=
Section titled “operator/=”complex & operator/=(const complex &rhs) noexceptDivides the given complex number by rhs, assigning it to the result.
Calls: shz_cdivf()
float shz_complex_t::imagThe imaginary portion of the complex number.
Inherited from shz::vecN.
float shz_complex_t::realThe real portion of the complex number.
Inherited from shz::vecN.