Top |
NcmDTuple2 * | ncm_dtuple2_new () |
NcmDTuple2 * | ncm_dtuple2_new_from_variant () |
NcmDTuple3 * | ncm_dtuple3_new () |
NcmDTuple3 * | ncm_dtuple3_new_from_variant () |
NcmDTuple2 * | ncm_dtuple2_copy () |
NcmDTuple3 * | ncm_dtuple3_copy () |
GVariant * | ncm_dtuple2_serialize () |
GVariant * | ncm_dtuple3_serialize () |
void | ncm_dtuple2_free () |
void | ncm_dtuple3_free () |
void | ncm_dtuple2_clear () |
void | ncm_dtuple3_clear () |
#define | NCM_DTUPLE2_STATIC_INIT() |
#define | NCM_DTUPLE3_STATIC_INIT() |
struct | NcmDTuple2 |
struct | NcmDTuple3 |
#define | NCM_DTUPLE2_TYPE |
#define | NCM_DTUPLE3_TYPE |
In this module we define the NcmDTuple2, NcmDTuple3, which are fixed sized arrays of double values.
NcmDTuple2 * ncm_dtuple2_new (const gdouble x
,const gdouble y
);
Creates a new NcmDTuple2.
NcmDTuple2 *
ncm_dtuple2_new_from_variant (GVariant *var
);
Creates a new NcmDTuple2 from a GVariant. The GVariant must be of type NCM_DTUPLE2_TYPE.
NcmDTuple3 * ncm_dtuple3_new (const gdouble x
,const gdouble y
,const gdouble z
);
Creates a new NcmDTuple3.
NcmDTuple3 *
ncm_dtuple3_new_from_variant (GVariant *var
);
Creates a new NcmDTuple3 from a GVariant.
The GVariant must be of type NCM_DTUPLE3_TYPE.
NcmDTuple2 *
ncm_dtuple2_copy (const NcmDTuple2 *dt2
);
Creates a new NcmDTuple2 with the same values of dt2
.
NcmDTuple3 *
ncm_dtuple3_copy (const NcmDTuple3 *dt3
);
Creates a new NcmDTuple3 with the same values of dt3
.
GVariant *
ncm_dtuple2_serialize (const NcmDTuple2 *dt2
);
Serializes a NcmDTuple2.
GVariant *
ncm_dtuple3_serialize (const NcmDTuple3 *dt3
);
Serializes a NcmDTuple3.
void
ncm_dtuple2_clear (NcmDTuple2 **dt2
);
If *dt2
is not NULL, frees it and sets it to NULL.
void
ncm_dtuple3_clear (NcmDTuple3 **dt3
);
If *dt3
is not NULL, frees it and sets it to NULL.
#define NCM_DTUPLE2_STATIC_INIT(x, y)
Initializes a NcmDTuple2 with the given elements.
For example:
1 |
NcmDTuple2 tuple = NCM_DTUPLE2_STATIC_INIT (1.0, 2.0); |
#define NCM_DTUPLE3_STATIC_INIT(x, y, z)
Initializes a NcmDTuple3 with the given elements.
For example:
1 |
NcmDTuple3 tuple = NCM_DTUPLE3_STATIC_INIT (1.0, 2.0, 3.0); |