![]() |
SH4ZAM! 0.7.0
Fast math library for the Sega Dreamcast's SH4 CPU
|
#include <shz_complex.hpp>


Public Member Functions | |
Constructors | |
Members for initializing and constructing. | |
| complex () noexcept=default | |
| complex (const complex &rhs) noexcept=default | |
| complex (float re, float im=0.0f) noexcept | |
| complex (const shz_complex_t &cplx) noexcept | |
| complex (const volatile shz_complex_t &cplx) noexcept | |
Member Operators | |
Overloaded operators defined as member functions. | |
| complex & | operator+= (const complex &rhs) noexcept |
| complex & | operator-= (const complex &rhs) noexcept |
| complex & | operator*= (const complex &rhs) noexcept |
| complex & | operator*= (float scale) noexcept |
| complex & | operator/= (const complex &rhs) noexcept |
Additional Inherited Members | |
Data Fields inherited from shz_complex_t | |
| float | real |
| float | imag |
C++ wrapper around a floating-point complex number, real/imaginary pair.
Definition at line 30 of file shz_complex.hpp.
|
defaultnoexcept |
Default constructor.
|
defaultnoexcept |
Default copy constructor.
|
inlinenoexcept |
Value constructor, sets the imaginary component to 0 if none is supplied.
Definition at line 44 of file shz_complex.hpp.
|
inlinenoexcept |
Converting constructor for initializing from the C base type.
Definition at line 48 of file shz_complex.hpp.
|
inlinenoexcept |
Converting constructor for initialization from a volatile value type.
Definition at line 52 of file shz_complex.hpp.
Adds and accumulates rhs onto the given complex number.
Definition at line 91 of file shz_complex.hpp.
Subtracts rhs from the given complex number, assigning it to the result.
Definition at line 96 of file shz_complex.hpp.
Multiplies and accumulates rhs by the given complex number.
Definition at line 101 of file shz_complex.hpp.
|
inlinenoexcept |
Multiplies and accumulates the given complex number by scalar.
Definition at line 106 of file shz_complex.hpp.
Divides the given complex number by rhs, assigning it to the result.
Definition at line 111 of file shz_complex.hpp.