Go to the source code of this file.
|
GLUSAPI GLUSfloat GLUSAPIENTRY | glusComplexAbsolutec (const GLUScomplex *complex) |
| Calculates the absolute of a complex number. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexConjugatec (GLUScomplex *result, const GLUScomplex *complex) |
| Calculates the complex conjugate. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexAddComplexc (GLUScomplex *result, const GLUScomplex *complex0, const GLUScomplex *complex1) |
| Calculates the sum of two complex numbers. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexSubtractComplexc (GLUScomplex *result, const GLUScomplex *complex0, const GLUScomplex *complex1) |
| Calculates the difference of two complex numbers. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexMultiplyComplexc (GLUScomplex *result, const GLUScomplex *complex0, const GLUScomplex *complex1) |
| Multiplies two complex numbers. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexDivideComplexc (GLUScomplex *result, const GLUScomplex *complex0, const GLUScomplex *complex1) |
| Divides two complex numbers. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexMultiplyScalarc (GLUScomplex *result, const GLUScomplex *complex, const GLUSfloat scalar) |
| Multiplies a complex number with a real number. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusComplexExpComplexc (GLUScomplex *result, const GLUScomplex *complex) |
| Calculates the exponential of complex number. More...
|
|
GLUSAPI GLUSvoid | glusComplexRootOfUnityc (GLUScomplex *result, const GLUSint n, const GLUSint k, const GLUSfloat dir) |
| Calculates the root of unity. More...
|
|
Calculates the absolute of a complex number.
- Parameters
-
complex | The complex number from which the absolute is calculated. |
- Returns
- The resulting value.
Calculates the sum of two complex numbers.
- Parameters
-
result | The resulting complex number. |
complex0 | First complex number. |
complex1 | Second complex number. |
Calculates the complex conjugate.
- Parameters
-
result | The resulting complex conjugate. |
complex | The complex number from which the conjugate is calculated. |
Divides two complex numbers.
- Parameters
-
result | The resulting complex number. |
complex0 | First complex number. |
complex1 | Second complex number. |
Calculates the exponential of complex number.
- Parameters
-
result | The resulting complex number. |
complex | Complex number. |
Multiplies two complex numbers.
- Parameters
-
result | The resulting complex number. |
complex0 | First complex number. |
complex1 | Second complex number. |
Multiplies a complex number with a real number.
- Parameters
-
result | The resulting complex number. |
complex | Complex number. |
scalar | The scalar to multiply with. |
Calculates the root of unity.
- Parameters
-
result | The root of unity. |
n | The nth root of unity. |
k | k element. Maybe negative. |
dir | The direction. Negative is clockwise. |
Calculates the difference of two complex numbers.
- Parameters
-
result | The resulting complex number. |
complex0 | First complex number. |
complex1 | Second complex number. |