Magnum/Math/Complex.h file

Class Magnum::Math::Complex, function Magnum::Math::dot(), Magnum::Math::angle()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Math
Math library.

Classes

template<class T>
class Magnum::Math::Complex
Complex number.

Functions

template<class T>
auto dot(const Complex<T>& a, const Complex<T>& b) -> T
Dot product of two complex numbers.
template<class T>
auto angle(const Complex<T>& normalizedA, const Complex<T>& normalizedB) -> Rad<T>
Angle between normalized complex numbers.
template<class T>
auto operator*(const Vector2<T>& vector, const Complex<T>& complex) -> Complex<T>
Multiply a vector with a complex number.
template<class T>
auto lerp(const Complex<T>& normalizedA, const Complex<T>& normalizedB, T t) -> Complex<T>
Linear interpolation of two complex numbers.
template<class T>
auto slerp(const Complex<T>& normalizedA, const Complex<T>& normalizedB, T t) -> Complex<T>
Spherical linear interpolation of two complex numbers.
template<class T>
auto operator<<(Debug& debug, const Complex<T>& value) -> Debug&
Debug output operator.