template<class T = double>
class asl::Complex< T >
Complex numbers.
- Deprecated:
- This class name might change to match Vec2 and others (
Complex_<T>
, Complex
, Complexd
)
#include <Complex.h>
|
| Complex (T x) |
| Creates a complex number from a real number (imaginary = 0)
|
|
| Complex (T r_, T i_) |
| Creates a complex number given real and imaginary parts.
|
|
Complex | exp_i (T t) const |
| Returns *this * exp(i * x) where x is a real number.
|
|
T | angle () const |
| Returns the argument (angle) of this number if polar form.
|
|
T | operator! () const |
| Returns the magnitude this number.
|
|
T | magnitude () const |
| Returns the magnitude this number.
|
|
T | magnitude2 () const |
| Returns the magnitude this number squared.
|
|
Complex | conj () const |
| Returns the complex conjugate of this number.
|
|
|
static Complex | polar (T m, T t) |
| Creates a complex number in polar form given a modulus and argument (angle)
|
|
The documentation for this class was generated from the following file: