AgsComplex
AgsComplex — boxed type of complex
|
|
Stability Level
Stable, unless otherwise indicated
Object Hierarchy
GBoxed
╰── AgsComplex
Includes
#include <ags/lib/ags_complex.h>
Description
Boxed type of complex data type.
Functions
ags_complex_alloc ()
AgsComplex *
ags_complex_alloc ();
Allocate AgsComplex
Since: 3.0.0
ags_complex_copy ()
gpointer
ags_complex_copy (AgsComplex *ptr
);
Create a copy of ptr
.
Returns
a pointer of the new AgsComplex
Since: 3.0.0
ags_complex_free ()
void
ags_complex_free (AgsComplex *ptr
);
Free the memory of ptr
.
Since: 3.0.0
ags_complex_set ()
void
ags_complex_set (AgsComplex *ptr
);
Set complex number.
Since: 3.0.0
ags_complex_get_term ()
void
ags_complex_get_term (AgsComplex *ptr
,
gdouble *real
,
gdouble *imag
);
Get complex number.
Returns
number as complex data type
Since: 3.7.11
ags_complex_set_term ()
void
ags_complex_set_term (AgsComplex *ptr
,
gdouble real
,
gdouble imag
);
Set complex number.
Since: 3.7.11
Types and Values
AGS_COMPLEX_M_E
#define AGS_COMPLEX_M_E (M_E + I * 0.0)
AGS_COMPLEX_M_PI
#define AGS_COMPLEX_M_PI (M_PI + I * 0.0)